Update README.md #33
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: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "documentation/**" | |
- "backend/**" | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
paths-ignore: | |
- "documentation/**" | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "22" | |
- name: Setup .docker.env for services | |
run: | | |
echo "${{ secrets.ENV_VALUES }}" > frontend/.docker.env | |
echo "${{ secrets.ENV_VALUES }}" > backend/.docker.env | |
- name: Start docker-compose | |
run: docker-compose up --build -d | |
- name: Install dependencies | |
run: cd frontend && npm install | |
- name: Install PlayWright dependencies | |
run: cd frontend && npx playwright install-deps | |
- name: Install Playwright | |
run: cd frontend && npm install -g playwright | |
- name: Install Playwright browsers | |
run: cd frontend && npx playwright install | |
# - name: Wait for database to start and migrate | |
# run: sleep 120 | |
- name: Run Playwright E2E tests | |
run: cd frontend && npm run test:playwright |