-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.25 KB
/
docker-tests.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
name: Run Docker Tests and Upload Results
on:
workflow_dispatch:
inputs:
A11Y_CHECKOUT:
description: 'Checkout a specific purple a11y branch'
required: false
default: 'git+https://github.com/GovTechSG/purple-a11y.git#master'
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Run start_docker.sh script
run: |
chmod +x ./shell_scripts/start_docker.sh
./shell_scripts/start_docker.sh "${{ github.event.inputs.A11Y_CHECKOUT || 'git+https://github.com/GovTechSG/purple-a11y.git#master' }}"
continue-on-error: true
- name: Run stop_docker.sh script
run: |
chmod +x ./shell_scripts/stop_docker.sh
./shell_scripts/stop_docker.sh
continue-on-error: true
- name: Zip Cypress reports folder
run: zip -r cypress-reports.zip ./cypress
continue-on-error: true
- name: Upload Cypress reports as artifact
uses: actions/upload-artifact@v2
with:
name: cypress-reports
path: cypress-reports.zip