Skip to content

Commit

Permalink
Updated CI dependencies
Browse files Browse the repository at this point in the history
Removed old cache dependency as it was using node 16 and showing a lot of warnings.

Upgraded all dependencies to latest version.

Implemented GitHub's cache for simplicity.
  • Loading branch information
Bullrich committed Feb 21, 2024
1 parent 70d69da commit 04aa467
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/javascript-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Continuous testing

on: [pull_request]
on:
pull_request:
push:
branches: ["main"]

jobs:
test:
Expand All @@ -10,12 +13,20 @@ jobs:
runs-on: ubuntu-latest
name: running ${{ matrix.command }}
steps:
- uses: actions/checkout@v3
- name: Use node 18
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: c-hive/gha-yarn-cache@v2
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn run ${{ matrix.command }}
Expand Down

0 comments on commit 04aa467

Please sign in to comment.