Update guest invite and guest confirmation flows #96
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: Run API and App Tests | |
on: | |
push: | |
pull_request: | |
branches: [main] | |
# This is also a reusable workflow that can be called from other workflows | |
workflow_call: | |
jobs: | |
test-api: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./api | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 500 | |
fetch-tags: true | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install API dev Dependencies | |
run: | | |
pip install -r requirements-dev.txt | |
- name: Test with tox | |
run: | | |
# Use tox because it is configured to test against the same package type being deployed | |
tox | |
test-app: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./app | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
cache: 'npm' | |
cache-dependency-path: app/package-lock.json | |
- name: Run npm CI | |
run: npm ci | |
- name: Test app | |
run: npm run test -- --no-color --run | |
- name: Run E2E tests | |
uses: cypress-io/github-action@v5 | |
with: | |
install: false | |
start: npm run dev | |
working-directory: ./app | |
wait-on: http://localhost:4040 |