Adding seed data to keep database and test state in sync. #50
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: cypress-test.yml | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
#- name: Set up Node.js | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 20.9.0 | |
# - name: Install dependencies | |
# run: npm install | |
# name: Start Angular app | |
# run: npm start & | |
#- name: Wait for Angular app to start | |
# run: npx wait-on http://localhost:4200 | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
spec: cypress/e2e/all.cy.ts | |
browser: chrome | |
start: npm run start | |
wait-on: "http://localhost:4200" | |
- name: Stop Angular app | |
run: pkill -f "ng serve" |