Skip to content

Commit

Permalink
ci: modernize Node env
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Nov 5, 2024
1 parent c083cd7 commit aa15e81
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,19 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x, 23.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: docker-compose up -d
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'
- run: docker compose up -d
- run: yarn install
- run: yarn test
- run: yarn add mongodb@6 && yarn test
if: ${{ matrix.node-version != '14.x' }}
- run: yarn cov:send
- run: yarn cov:check
- run: yarn build

0 comments on commit aa15e81

Please sign in to comment.