forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up CI by parallelizing more things (#1716)
* speed up CI by parallelizing more things * add node_modules caching for when package-lock hasn't changed * Wasn't quite able to do it with artifacts so instead build a composite action * simplify with matrix * use the new shared setup action where appropriate
- Loading branch information
1 parent
fd577b8
commit fc9d5ad
Showing
6 changed files
with
80 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Setup | ||
description: Setup the workspace for the CI | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "package.json" | ||
|
||
- name: Restore dependencies | ||
id: restore-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: js-depend-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
if: steps.restore-dependencies.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Build third-party libraries | ||
shell: bash | ||
run: npm run build:libs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters