Removed Node16, as its deprecated since 10.2023 #70
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: API Function Tests | |
'on': | |
push: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
test: | |
name: 'Node.js v${{ matrix.node }}' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ matrix.node }}' | |
- uses: actions/checkout@v3 | |
- name: 'Cache node_modules' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-v${{ matrix.node }}- | |
- name: Install Dependencies | |
run: npm install | |
- name: Run All Node.js Tests | |
run: npm run test |