Skip to content

Commit

Permalink
⏫ chore: Update CI workflow to use Yarn for installing dependencies a…
Browse files Browse the repository at this point in the history
…nd running tests
  • Loading branch information
plzfday committed Jul 19, 2024
1 parent 3ec51dc commit 058b4dc
Show file tree
Hide file tree
Showing 3 changed files with 4,995 additions and 9,277 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Change NODE_ENV to install all dependencies
- name: Set NODE_ENV
run: echo "NODE_ENV=development" >> $GITHUB_ENV

- name: Checkout repository
Expand All @@ -24,17 +24,14 @@ jobs:
with:
node-version: '22'

- name: Upgrade npm
run: npm install -g npm@latest
- name: Install Yarn
run: corepack enable

- name: Clear npm cache
run: npm cache clean --force
- name: Clear yarn cache
run: yarn cache clean

- name: Install dependencies
run: npm install

- name: List node_modules
run: ls -la node_modules
run: yarn install

- name: Run unit tests
run: npm run test
run: yarn test
Loading

0 comments on commit 058b4dc

Please sign in to comment.