-
Notifications
You must be signed in to change notification settings - Fork 22
65 lines (59 loc) · 1.82 KB
/
nightly-tests.yaml
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
name: Nightly E2E Tests
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
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@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: oldstable
-
name: Resolve stable version
id: stable
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.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: 90
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
go_version:
- ${{ needs.resolve-versions.outputs.oldstable }}
- ${{ needs.resolve-versions.outputs.stable }}
steps:
- name: Free up space on macOS runner
if: ${{ matrix.os == 'macos-latest' }}
run: |
df -hI /dev/disk3s1s1
sudo rm -rf /Applications/Xcode*
df -hI /dev/disk3s1s1
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ matrix.go_version }}
- name: E2E tests
timeout-minutes: 60
env:
E2E_TESTING: 1
run: |
go test -timeout=40m -v ./...