This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (49 loc) · 1.44 KB
/
_e2e.yaml
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
50
51
52
53
54
55
56
57
58
name: _e2e-tests
on:
workflow_call:
inputs:
url:
required: true
type: string
build-sha:
required: true
type: string
jobs:
confirm-deployed:
runs-on: ubuntu-latest
env:
SELENIUM_TARGET_URL: ${{ inputs.url }}
APP_BUILD_SHA: ${{ inputs.build-sha }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: get npm cache directory
id: npm-cache-dir
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: |
npm ci
npm install chromedriver --chromedriver_version=LATEST
- id: wait-3-min
name: Wait for Docker and k8s to catch up
run: sleep 180
- id: first-try
name: 'E2E Tests - first attempt'
run: npm run confirm-deployment
continue-on-error: true
- id: second-try
if: ${{ failure() }}
name: 'E2E Tests - second attempt'
run: npm run confirm-deployment
continue-on-error: true
- name: "Allow failures because GitHub does not support 'warn' builds."
run: true