Add basic dashboard #76
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: e2e tests | |
on: | |
pull_request: | |
paths-ignore: | |
- src/**/*.stories.ts | |
- src/**/*.stories.spec.ts | |
- test/**/*.cs | |
- docs | |
- docs-project | |
- scripts | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup local certificate | |
run: ./scripts/generate-local-cert.sh | |
- name: Setup Node Environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: ./src/livestock-tracker/ClientApp | |
- name: Install packages | |
run: npm ci | |
working-directory: ./src/livestock-tracker/ClientApp | |
- name: Copy static files | |
run: ./copy-assets.sh | |
working-directory: ./src/livestock-tracker/ClientApp/scripts | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
command: npm run ci | |
working-directory: ./test/e2e |