Merge pull request #47 from smart-on-fhir/dependabot/npm_and_yarn/con… #36
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.15.0] | |
browser: ["chrome"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
# Run vitest tests | |
- run: npm run test | |
env: | |
CI: true | |
# Build code and run as a prod server on port 5173 in the background | |
- run: npm run build | |
- run: npm run start-prod -- -p 5173 & | |
env: | |
CI: true | |
# Run nightwatch tests | |
- run: npm run test:e2e | |
env: | |
CI: true |