Skip to content

Commit

Permalink
ci: use built-in cache action + Node@20
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 16, 2023
1 parent 366609a commit e0c58c7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,18 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 16 ]
node-version: [ 20 ]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
Expand Down

0 comments on commit e0c58c7

Please sign in to comment.