Skip to content

Commit

Permalink
ci: implemented the initialization of the node.js environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Mar 28, 2024
1 parent 1cb7e73 commit e9fa29e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ jobs:
repository: vrchat-community/package-list-action
path: ${{ env.pathToCi }}
clean: false
- name: Pre-prepare the Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Enable the corepack because of the Yarn berry
run: corepack enable
- name: Post-prepare the Node.js environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'yarn' || '' }}
node-version-file: .node-version
- env:
HUSKY: 0
name: Install the dependencies
run: corepack up
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,25 @@ jobs:
git config --global core.eol lf
- name: Stages the pushed branch
uses: actions/checkout@v4
- name: Pre-prepare the Node.js version ${{ matrix.node-version }} environment
- name: Pre-prepare the Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .node-version
- name: Enable the corepack because of the Yarn berry
run: corepack enable
- name: Post-prepare the Node.js version ${{ matrix.node-version }} environment
- name: Post-prepare the Node.js environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'yarn' || '' }}
node-version: ${{ matrix.node-version }}
node-version-file: .node-version
- env:
HUSKY: 0
name: Install the dependencies
run: yarn install --inline-builds
run: corepack up
- name: Run the tests
run: yarn run test
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 21.x
platform:
- os: ubuntu-latest
shell: bash
Expand Down

0 comments on commit e9fa29e

Please sign in to comment.