-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 961 Bytes
/
e2e.yml
File metadata and controls
39 lines (33 loc) · 961 Bytes
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
name: "CI: E2E"
on:
workflow_call:
inputs:
url:
required: true
type: string
jobs:
e2e:
name: Run E2E tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version-file: .nvmrc
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm run e2e:install
- name: Run E2E tests
env:
URL: ${{ inputs.url }}
run: npm run e2e:test
- name: Upload test results
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: e2e-test-results
path: test-results/
if-no-files-found: ignore