-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.13 KB
/
journey-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
44
45
46
47
48
49
name: Journey Tests
permissions:
checks: write
pull-requests: write
on:
workflow_dispatch:
workflow_call:
jobs:
build:
name: run-tests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
repository: DEFRA/cdp-portal-journey-tests
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup the tests
run: npm i
- name: Start docker compose
run: docker compose up --wait-timeout 300 -d --quiet-pull
- name: Run the tests
run: |
npm run test:github
npm run report
- name: debug
if: failure()
run: |
docker compose logs > logs.txt
docker ps
- name: Upload allure report
if: failure()
uses: actions/upload-artifact@v4
with:
name: allure-report
path: ./allure-report
- name: Upload docker compose logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: docker-compose-logs
path: ./logs.txt