|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | integration: |
11 | | - name: Integration test |
| 11 | + name: Integration tests |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | steps: |
14 | | - - name: Set up Go ^1.17 |
15 | | - uses: actions/setup-go@v2 |
16 | | - with: |
17 | | - go-version: ^1.17 |
18 | | - |
19 | 14 | - name: Check out code into the Go module directory |
20 | | - uses: actions/checkout@v2 |
| 15 | + uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Use Go 1.23 |
| 18 | + uses: actions/setup-go@v5 |
| 19 | + with: |
| 20 | + go-version: '1.23' |
21 | 21 |
|
22 | 22 | - name: Run the integration test |
23 | 23 | run: go test -timeout 10m -run TestIntegration ./integration/... |
24 | 24 | bad_vote: |
25 | 25 | name: Test bad vote |
26 | 26 | runs-on: ubuntu-latest |
27 | 27 | steps: |
28 | | - - name: Set up Go ^1.17 |
29 | | - uses: actions/setup-go@v2 |
30 | | - with: |
31 | | - go-version: ^1.17 |
32 | | - |
33 | 28 | - name: Check out code into the Go module directory |
34 | | - uses: actions/checkout@v2 |
| 29 | + uses: actions/checkout@v4 |
| 30 | + |
| 31 | + - name: Use Go 1.23 |
| 32 | + uses: actions/setup-go@v5 |
| 33 | + with: |
| 34 | + go-version: '1.23' |
35 | 35 |
|
36 | 36 | - name: Run the bad vote test |
37 | 37 | run: go test -timeout 10m -run TestBadVote ./integration/... |
38 | 38 | crash: |
39 | 39 | name: Test crash |
40 | 40 | runs-on: ubuntu-latest |
41 | 41 | steps: |
42 | | - - name: Set up Go ^1.17 |
43 | | - uses: actions/setup-go@v2 |
44 | | - with: |
45 | | - go-version: ^1.17 |
46 | | - |
47 | 42 | - name: Check out code into the Go module directory |
48 | | - uses: actions/checkout@v2 |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Use Go 1.23 |
| 46 | + uses: actions/setup-go@v5 |
| 47 | + with: |
| 48 | + go-version: '1.23' |
49 | 49 |
|
50 | 50 | - name: Run the crash test |
51 | | - run: go test -timeout 10m -run TestCrash ./integration/... |
| 51 | + run: | |
| 52 | + for a in $( seq 3 ); do |
| 53 | + echo "Testing sequence $a" |
| 54 | + go test -timeout 10m -run TestCrash ./integration/... && exit 0 |
| 55 | + done |
| 56 | + exit 1 |
52 | 57 | revote: |
53 | 58 | name: Test revote |
54 | 59 | runs-on: ubuntu-latest |
55 | 60 | steps: |
56 | | - - name: Set up Go ^1.17 |
57 | | - uses: actions/setup-go@v2 |
58 | | - with: |
59 | | - go-version: ^1.17 |
60 | | - |
61 | 61 | - name: Check out code into the Go module directory |
62 | | - uses: actions/checkout@v2 |
| 62 | + uses: actions/checkout@v4 |
| 63 | + |
| 64 | + - name: Use Go 1.23 |
| 65 | + uses: actions/setup-go@v5 |
| 66 | + with: |
| 67 | + go-version: '1.23' |
63 | 68 |
|
64 | 69 | - name: Run the revote test |
65 | 70 | run: go test -timeout 10m -run TestRevote ./integration/... |
0 commit comments