17
17
jobs :
18
18
git-secrets :
19
19
runs-on : ubuntu-latest
20
+ timeout-minutes : 5
20
21
steps :
21
22
- name : Pull latest awslabs/git-secrets repo
22
23
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
@@ -34,10 +35,11 @@ jobs:
34
35
git secrets --register-aws
35
36
git secrets --scan-history
36
37
lint :
38
+ runs-on : ubuntu-latest
37
39
strategy :
38
40
matrix :
39
41
working_dir : ['.']
40
- runs-on : ubuntu-latest
42
+ timeout-minutes : 10
41
43
steps :
42
44
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
43
45
- uses : golangci/golangci-lint-action@v6 # v6.1.0
@@ -51,31 +53,54 @@ jobs:
51
53
steps :
52
54
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
53
55
- run : yamllint .
54
- unit-test :
56
+ build :
55
57
runs-on : ubuntu-latest
58
+ timeout-minutes : 10
56
59
steps :
57
60
- uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
58
61
with :
59
62
go-version : ${{ env.GO_VERSION }}
60
- cache : false
61
63
- name : Checkout finch-deamon repo
62
64
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
63
- - name : Build and run unit tests
64
- run : |
65
- make build
66
- make test-unit
65
+ - name : Build the daemon
66
+ run : make build
67
+ - name : Run unit tests
68
+ run : make test-unit
69
+ - name : Create build artifacts
70
+ run : tar -cvf build-artifacts.tar bin/
71
+ - name : Upload build artifacts
72
+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
73
+ with :
74
+ name : build-artifacts
75
+ path : build-artifacts.tar
67
76
e2e-test :
68
77
runs-on : ubuntu-latest
78
+ needs : [build]
79
+ strategy :
80
+ matrix :
81
+ containerd : ["1.7.22", "2.0.0"]
82
+ fail-fast : false
83
+ timeout-minutes : 10
84
+ env :
85
+ CONTAINERD_VERSION : ${{ matrix.containerd }}
69
86
steps :
70
87
- uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
71
88
with :
72
89
go-version : ${{ env.GO_VERSION }}
73
90
- name : Checkout finch-daemon repo
74
91
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
92
+ - name : Stop pre-existing containerd and docker services
93
+ run : |
94
+ sudo systemctl stop docker
95
+ sudo systemctl stop containerd
75
96
- name : Install Dependencies for e2e Testing
76
97
run : ./setup-test-env.sh
77
- - name : Build the daemon
78
- run : make build
98
+ - name : Download build artifacts
99
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
100
+ with :
101
+ name : build-artifacts
102
+ - name : Extract build artifacts
103
+ run : tar -xvf build-artifacts.tar
79
104
- name : Remove default podman network config
80
105
run : |
81
106
sudo ls /etc/cni/net.d
0 commit comments