Create the first version of the API #2
Workflow file for this run
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-ignore: | |
- main # tests will be launched by workflow_call from the "Release" workflow | |
pull_request: | |
types: [ opened, reopened ] | |
workflow_call: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
operating_system: | |
- ubuntu-20.04 # Specify latest Ubuntu version with MongoDB preinstalled as for Ubuntu-22.04 MongoDB is not currently available. See https://github.com/actions/runner-images/issues/5490 | |
- windows-latest | |
- macos-latest | |
fail-fast: false # run tests on other operating systems even if one fails | |
runs-on: ${{ matrix.operating_system }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- name: Run tests | |
run: npm test |