@@ -87,30 +87,51 @@ jobs:
87
87
flags : unit
88
88
89
89
acceptance :
90
+ if : ${{ !contains(github.event.head_commit.message, '[skip acc]') }}
90
91
name : Acceptance Tests
91
92
needs : build
92
93
runs-on : ubuntu-latest
93
94
timeout-minutes : 15
94
- if : ${{ !contains(github.event.head_commit.message, '[skip acc]') }}
95
+
96
+ concurrency :
97
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.tool }}-${{ matrix.version }}
98
+ cancel-in-progress : true
99
+
95
100
strategy :
101
+ fail-fast : false
96
102
# todo: parallelism isn't working due to acceptance test resource name collision
97
103
max-parallel : 1
98
- fail-fast : false
99
104
matrix :
100
- terraform :
101
- # - "1.5.7" # todo: Coolify AccTest server is being rate limited, causing test failures
102
- - " 1.9.*"
105
+ include :
106
+ # - tool: terraform
107
+ # version: v1.5.7
108
+ - tool : terraform
109
+ version : v1.9.x
110
+ - tool : opentofu
111
+ version : v1.8.x
103
112
steps :
104
113
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105
114
- uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
106
115
with :
107
116
go-version-file : " go.mod"
108
117
cache : true
109
- - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
118
+ - run : go mod download
119
+
120
+ - if : matrix.tool == 'terraform'
121
+ uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
110
122
with :
111
- terraform_version : ${{ matrix.terraform }}
123
+ terraform_version : ${{ matrix.version }}
112
124
terraform_wrapper : false
113
- - run : go mod download
125
+ - if : matrix.tool == 'opentofu'
126
+ uses : opentofu/setup-opentofu@12f4debbf681675350b6cd1f0ff8ecfbda62027b # v1.0.4
127
+ with :
128
+ tofu_version : ${{ matrix.version }}
129
+ tofu_wrapper : false
130
+ - if : matrix.tool == 'opentofu'
131
+ run : |
132
+ echo TF_ACC_TERRAFORM_PATH="$(which tofu)" >> $GITHUB_ENV
133
+ echo TF_ACC_PROVIDER_NAMESPACE="hashicorp" >> $GITHUB_ENV
134
+ echo TF_ACC_PROVIDER_HOST="registry.opentofu.org" >> $GITHUB_ENV
114
135
115
136
- uses : tailscale/github-action@67573e622a7b555a2f4e2078c6ad161201e3e91e # Avoiding "v2" tag due to outdated action
116
137
with :
@@ -120,7 +141,7 @@ jobs:
120
141
authkey : ${{ secrets.TS_AUTHKEY }}
121
142
statedir : /tmp/tailscale-state/
122
143
tags : tag:ci
123
- version : 1.76.1
144
+ version : 1.76.6
124
145
- run : |
125
146
go clean -testcache
126
147
go test -v \
0 commit comments