-
Notifications
You must be signed in to change notification settings - Fork 8
81 lines (75 loc) · 2.29 KB
/
e2e.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: e2e
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
go-versions:
name: "lookup go versions"
runs-on: ubuntu-latest
outputs:
go-mod-version: ${{ steps.versions.outputs.go-mod-version }}
steps:
- uses: actions/checkout@v4
- uses: arnested/go-version-action@v1
id: versions
build-image:
name: "Build ncm-issuer image"
runs-on: ubuntu-latest
needs: go-versions
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- run: go version
- name: "Build ncm-issuer image"
run: |
make docker-build
docker save ncm-issuer > ncm-issuer-image.tar
echo "ncm-issuer image built and saved to ncm-issuer-image.tar"
- name: "Upload ncm-issuer image"
uses: actions/upload-artifact@v4
with:
name: ncm-issuer-image
path: ncm-issuer-image.tar
retention-days: 1
clientauth:
name: "clientauth test"
needs: [go-versions, build-image]
uses: ./.github/workflows/clientauth-test.yml
secrets: inherit
with:
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }}
image-artifact-name: ncm-issuer-image
caname-id:
name: "ca name/id tests"
needs: [go-versions, build-image]
uses: ./.github/workflows/caname-id-test.yml
secrets: inherit
with:
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }}
image-artifact-name: ncm-issuer-image
signer:
name: "signer test"
needs: [go-versions, build-image]
uses: ./.github/workflows/signer-tests.yml
secrets: inherit
with:
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }}
image-artifact-name: ncm-issuer-image
pkey:
name: "pkey tests"
needs: [go-versions, build-image]
uses: ./.github/workflows/pkey-tests.yml
secrets: inherit
with:
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }}
image-artifact-name: ncm-issuer-image
san:
name: "san test"
needs: [go-versions, build-image]
uses: ./.github/workflows/san-test.yml
secrets: inherit
with:
go-version: ${{ fromJSON(needs.go-versions.outputs.go-mod-version) }}
image-artifact-name: ncm-issuer-image