|
15 | 15 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - lint: |
19 | | - runs-on: "ubuntu-24.04" |
20 | | - timeout-minutes: 20 |
21 | | - steps: |
22 | | - |
23 | | - with: |
24 | | - fetch-depth: 1 |
25 | | - - name: Set GO env |
26 | | - run: | |
27 | | - . ./hack/build-integration-canary.sh |
28 | | - canary::golang::latest |
29 | | - - uses: actions/setup-go@v5 |
30 | | - with: |
31 | | - go-version: ${{ env.GO_VERSION }} |
32 | | - check-latest: true |
33 | | - cache: true |
34 | | - - name: golangci-lint |
35 | | - |
36 | | - with: |
37 | | - args: --verbose |
38 | | - |
39 | 18 | linux: |
40 | 19 | runs-on: "ubuntu-24.04" |
41 | 20 | timeout-minutes: 40 |
@@ -65,11 +44,13 @@ jobs: |
65 | 44 | - name: "Run unit tests" |
66 | 45 | run: go test -v ./pkg/... |
67 | 46 | - name: "Run integration tests" |
68 | | - run: docker run -t --rm --privileged test-integration |
| 47 | + run: docker run -t --rm --privileged test-integration ./hack/test-integration.sh |
| 48 | + - name: "Run integration tests (flaky)" |
| 49 | + run: docker run -t --rm --privileged test-integration ./hack/test-integration.sh -test.only-flaky |
69 | 50 |
|
70 | 51 | windows: |
71 | | - runs-on: windows-latest |
72 | 52 | timeout-minutes: 30 |
| 53 | + runs-on: windows-latest |
73 | 54 | defaults: |
74 | 55 | run: |
75 | 56 | shell: bash |
|
95 | 76 | cache: true |
96 | 77 | check-latest: true |
97 | 78 | - run: go install ./cmd/nerdctl |
| 79 | + - run: go install -v gotest.tools/gotestsum@v1 |
98 | 80 | # This here is solely to get the cni install script, which has not been modified in 3+ years. |
99 | 81 | # There is little to no reason to update this to latest containerd |
100 | 82 | |
|
112 | 94 | ctrdVersion: ${{ env.CONTAINERD_VERSION }} |
113 | 95 | run: powershell hack/configure-windows-ci.ps1 |
114 | 96 | - name: "Run integration tests" |
115 | | - # See https://github.com/containerd/nerdctl/blob/main/docs/testing/README.md#about-parallelization |
116 | | - run: go test -p 1 -v ./cmd/nerdctl/... |
| 97 | + run: ./hack/test-integration.sh |
| 98 | + - name: "Run integration tests (flaky)" |
| 99 | + run: ./hack/test-integration.sh -test.only-flaky |
0 commit comments