-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (57 loc) · 1.69 KB
/
e2e-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
50
51
52
53
54
55
56
57
name: End-to-end tests
on:
workflow_call:
inputs:
clientId:
description: Client ID to use for authentication
required: true
type: string
oktaOrgUrl:
description: Okta organization URL
required: false
type: string
oktaAuthServer:
description: Okta authentication server identifier
required: false
type: string
ref:
description: Reference branch, tag or commit SHA to checkout
required: false
type: string
default: main
sequentialApplyAndDelete:
description: Whether to perform apply/delete requests sequentially
required: false
type: boolean
default: true
secrets:
clientSecret:
description: Client secret to use for authentication
required: true
jobs:
test:
name: Run e2e tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
repository: nobl9/nobl9-go
ref: ${{ inputs.ref }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Run tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 3
command: make test/e2e
env:
NOBL9_SDK_CLIENT_ID: ${{ inputs.clientId }}
NOBL9_SDK_CLIENT_SECRET: ${{ secrets.clientSecret }}
NOBL9_SDK_OKTA_ORG_URL: ${{ inputs.oktaOrgUrl }}
NOBL9_SDK_OKTA_AUTH_SERVER: ${{ inputs.oktaAuthServer }}
NOBL9_SDK_NO_CONFIG_FILE: true
NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE: ${{ inputs.sequentialApplyAndDelete }}