-
Notifications
You must be signed in to change notification settings - Fork 116
62 lines (58 loc) · 1.93 KB
/
nightly.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
name: Nightly E2E tests
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
env:
GOPROXY: https://proxy.golang.org/
jobs:
# resolve-versions allows us to show resolved Go versions in job titles
# for added clarity and quick orientation in a long list of past jobs
resolve-versions:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
-
name: Resolve old stable version
id: oldstable
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # https://github.com/actions/setup-go/releases/tag/v4.1.0
with:
go-version: oldstable
-
name: Resolve stable version
id: stable
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # https://github.com/actions/setup-go/releases/tag/v4.1.0
with:
go-version: stable
outputs:
oldstable: ${{ steps.oldstable.outputs.go-version }}
stable: ${{ steps.stable.outputs.go-version }}
e2e-tests:
name: e2e-tests (${{ matrix.os }}, go ${{ matrix.go_version }})
needs: resolve-versions
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
go_version:
- ${{ needs.resolve-versions.outputs.oldstable }}
- ${{ needs.resolve-versions.outputs.stable }}
steps:
-
name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # https://github.com/actions/checkout/releases/tag/v4.1.0
-
name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # https://github.com/actions/setup-go/releases/tag/v4.1.0
with:
go-version: ${{ matrix.go_version }}
-
name: Run E2E tests
env:
TFEXEC_E2ETEST_VERSIONS: refs/heads/main
run: go test -race -timeout=30m -v ./tfexec/internal/e2etest