Skip to content

Commit

Permalink
ci: update yarn and add deps cache
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Dec 18, 2024
1 parent 549dab7 commit 314c040
Show file tree
Hide file tree
Showing 4 changed files with 2,178 additions and 2,165 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ jobs:
with:
node-version: '20.13.1'

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: npm install
run: yarn install --frozen-lockfile

- name: Run tests
run: npm test
run: yarn test
4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"hooks": {
"pre-commit": "npm test"
}
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 314c040

Please sign in to comment.