File tree 2 files changed +66
-6
lines changed
2 files changed +66
-6
lines changed Original file line number Diff line number Diff line change 15
15
tags :
16
16
- " v*"
17
17
jobs :
18
+ test :
19
+ name : Run Integration Tests
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Set up Go
23
+ uses : actions/setup-go@v5
24
+ with :
25
+ go-version : " 1.22"
26
+ id : go
27
+
28
+ - name : Check out code into the Go module directory
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Get dependencies
32
+ run : |
33
+ go mod download
34
+
35
+ - name : Build
36
+ env :
37
+ CGO_ENABLED : " 0"
38
+ run : |
39
+ go build -v .
40
+
41
+ - name : Check Versions
42
+ id : checkversions
43
+ run : |
44
+ source <(go run ./scripts/coderversion)
45
+ echo "CODER_MAINLINE_VERSION=${CODER_MAINLINE_VERSION}" >> "${GITHUB_OUTPUT}"
46
+ echo "CODER_STABLE_VERSION=${CODER_STABLE_VERSION}" >> "${GITHUB_OUTPUT}"
47
+ echo "CODER_OLDSTABLE_VERSION=${CODER_OLDSTABLE_VERSION}" >> "${GITHUB_OUTPUT}"
48
+
49
+ - name : Run integration test (mainline)
50
+ env :
51
+ CODER_IMAGE : " ghcr.io/coder/coder"
52
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_MAINLINE_VERSION }}
53
+ run : |
54
+ go test -v ./integration
55
+
56
+ - name : Run integration test (stable)
57
+ env :
58
+ CODER_IMAGE : " ghcr.io/coder/coder"
59
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_STABLE_VERSION }}
60
+ run : |
61
+ go test -v ./integration
62
+
63
+ - name : Run integration test (oldstable)
64
+ env :
65
+ CODER_IMAGE : " ghcr.io/coder/coder"
66
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_OLDSTABLE_VERSION }}
67
+ run : |
68
+ go test -v ./integration
69
+
18
70
goreleaser :
19
71
runs-on : ubuntu-latest
20
72
steps :
Original file line number Diff line number Diff line change 38
38
run : |
39
39
go build -v .
40
40
41
+ - name : Check Versions
42
+ id : checkversions
43
+ run : |
44
+ source <(go run ./scripts/coderversion)
45
+ echo "CODER_MAINLINE_VERSION=${CODER_MAINLINE_VERSION}" >> "${GITHUB_OUTPUT}"
46
+ echo "CODER_STABLE_VERSION=${CODER_STABLE_VERSION}" >> "${GITHUB_OUTPUT}"
47
+ echo "CODER_OLDSTABLE_VERSION=${CODER_OLDSTABLE_VERSION}" >> "${GITHUB_OUTPUT}"
48
+
41
49
- name : Run integration test (devel)
42
50
timeout-minutes : 10
43
51
env :
@@ -50,25 +58,25 @@ jobs:
50
58
timeout-minutes : 10
51
59
env :
52
60
CODER_IMAGE : " ghcr.io/coder/coder"
61
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_MAINLINE_VERSION }}
53
62
run : |
54
- source <(go run ./scripts/coderversion)
55
- CODER_VERSION="${CODER_MAINLINE_VERSION}" go test -v ./integration
63
+ go test -v ./integration
56
64
57
65
- name : Run integration test (stable)
58
66
timeout-minutes : 10
59
67
env :
60
68
CODER_IMAGE : " ghcr.io/coder/coder"
69
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_STABLE_VERSION }}
61
70
run : |
62
- source <(go run ./scripts/coderversion)
63
- CODER_VERSION="${CODER_STABLE_VERSION}" go test -v ./integration
71
+ go test -v ./integration
64
72
65
73
- name : Run integration test (oldstable)
66
74
timeout-minutes : 10
67
75
env :
68
76
CODER_IMAGE : " ghcr.io/coder/coder"
77
+ CODER_VERSION : ${{ steps.checkversions.outputs.CODER_OLDSTABLE_VERSION }}
69
78
run : |
70
- source <(go run ./scripts/coderversion)
71
- CODER_VERSION="${CODER_OLDSTABLE_VERSION}" go test -v ./integration
79
+ go test -v ./integration
72
80
73
81
# run acceptance tests in a matrix with Terraform core versions
74
82
test :
You can’t perform that action at this time.
0 commit comments