Merge pull request #273 from DavideViolante/dependabot/npm_and_yarn/w… #136
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
mongodb: | |
image: mongo:5.0.13 | |
ports: | |
- 27017:27017 | |
if: "!contains(github.event.head_commit.message, '[skip tests]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run test -- --watch=false --progress=false --browsers=ChromeHeadless | |
- run: npm run testbe |