Merge pull request #321 from SavageCore/dependabot/npm_and_yarn/types… #379
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: | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
node_version: | |
- 20 | |
architecture: | |
- x64 | |
# an extra windows-x86 run: | |
include: | |
- os: windows-latest | |
node_version: 20 | |
architecture: x86 | |
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
architecture: ${{ matrix.architecture }} | |
cache: "npm" | |
- name: Install latest npm | |
run: npm i -g npm@latest | |
- name: Clean install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test |