Merge pull request #97 from ChangePlusPlusVandy/debug/fix-event-apply… #551
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format-lint: | |
name: Automatically format and lint code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install packages | |
run: npm ci | |
- name: Prettier | |
run: npm run format | |
- name: Lint | |
run: npm run lint | |
run-e2e-tests: | |
name: Runs Cypress E2E tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm ci | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
build: npm run build | |
start: npm run e2e:headless | |
wait-on: http://localhost:3000 | |
env: | |
MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
run-component-tests: | |
name: Runs Cypress component tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Cypress run | |
run: npm run component:headless | |
env: | |
MONGODB_URI: ${{ secrets.MONGODB_URI }} |