Merge pull request #394 from tschaub/dependabot/github_actions/action… #183
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CI: true | |
jobs: | |
run: | |
name: Node ${{ matrix.node }} / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
node: | |
- 16 | |
- 18 | |
- 20 | |
- 22 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set Node.js version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: node --version | |
- run: npm --version | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test |