-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 1.78 KB
/
e2e-node.yml
File metadata and controls
54 lines (51 loc) · 1.78 KB
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
name: End-to-end node tests
on:
push:
env:
CI: true
jobs:
e2e-node:
runs-on: ${{ matrix.os }}
environment:
name: ${{ matrix.environment-name }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
node-version: ["20.x", "22.x", "24.x"]
environment-name: ["ESS PodSpaces", "ESS Release-2-3", "ESS Next"]
experimental: [false]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build
- # Dependabot cannot access secrets, so it doesn't have a token to authenticate to ESS.
# We want jobs in this workflow to be gating PRs, so the whole matrix must
# run even for dependabot so that the matrixed jobs are skipped, instead
# of the whole pipeline.
if: ${{ github.actor != 'dependabot[bot]' }}
run: npm run test:e2e:node
env:
E2E_TEST_IDP: ${{ secrets.E2E_TEST_IDP }}
E2E_TEST_ENVIRONMENT: ${{ matrix.environment-name }}
E2E_TEST_VC_PROVIDER: ${{ secrets.E2E_TEST_VC_PROVIDER }}
E2E_TEST_OWNER_CLIENT_ID: ${{ secrets.E2E_TEST_OWNER_CLIENT_ID }}
E2E_TEST_OWNER_CLIENT_SECRET: ${{ secrets.E2E_TEST_OWNER_CLIENT_SECRET }}
check:
if: always()
needs:
- e2e-node
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # release/v1
with:
# Dependabot will skip e2e tests
allowed-skips: e2e-node
jobs: ${{ toJSON(needs) }}