chore(deps): update node.js to v20.18.1 (#892) #838
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: node test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "node/ci-dependency/**" | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: node/ci-dependency | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install Dependencies | |
run: npm install | |
- name: Cache Dependencies | |
uses: actions/cache@v4 | |
with: | |
path: node/ci-dependency/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('node/ci-dependency/package-lock.json') }} | |
test: | |
needs: setup | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: node/ci-dependency | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] #, windows-latest] | |
node: [16, 18, 20] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Cache Dependencies | |
uses: actions/cache@v4 | |
with: | |
path: node/ci-dependency/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('node/ci-dependency/package-lock.json') }} | |
- name: Run Tests | |
run: npm test |