-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (28 loc) · 961 Bytes
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: End2End Testing with Cypress
# we run testing for both master and dev branches (but only on pull requests)
on:
pull_request:
branches:
- 'master'
- 'dev'
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the source code
- name: 🛎️ Checkout
uses: actions/checkout@v4
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
docker-images: false
- name: create dumy files for ./git/HEAD and ./git/refs/heads/
run: |
mkdir -p .git/refs/heads
touch .git/HEAD
touch .git/refs/heads/master
- name: 🏗️ Build the stack
run: docker compose -f docker-compose.yml -f docker-compose.ci-testing.yml build
- name: 🚀 Run cypress (e2e tests)
run: docker compose -f docker-compose.yml -f docker-compose.ci-testing.yml up --exit-code-from awt-cypress