-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (36 loc) · 991 Bytes
/
check.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
35
36
37
38
39
40
41
42
43
44
45
46
name: Check Docker Compose
on:
push
jobs:
build:
name: Check Docker Compose
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup project
run: ./setup-testing-mode.sh
- name: Build Docker Compose stack
run: docker compose up -d
- name: Sleep
run: sleep 10s
shell: bash
- name: Check running containers
run: docker ps
- name: Run Cypress unit tests
uses: cypress-io/github-action@v5
with:
install: false
build: npm i -D cypress
browser: firefox
env:
CYPRESS_VIDEO: false
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'
- name: Store Cypress screenshots
if: always()
uses: actions/upload-artifact@v3
with:
name: screenshots
path: cypress/screenshots
- name: Docker Compose logs
run: docker compose logs