Bump Go to 1.26.5 (#369) #516
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: go | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| - name: Setup Go | |
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 #v6.5.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run linter | |
| uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a #v9.3.0 | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| - name: Setup Go | |
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 #v6.5.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Verify go mod is not dirty | |
| run: | | |
| go mod tidy | |
| git diff --exit-code | |
| - name: Verify generate is not dirty | |
| run: | | |
| make -B generate | |
| git diff --exit-code | |
| - name: Run unit tests | |
| run: make test-unit | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f #v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: unit | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| - name: Setup Go | |
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 #v6.5.0 | |
| with: | |
| go-version-file: test/e2e/go.mod | |
| - run: docker inspect $(docker network ls -q) | |
| - name: Run e2e tests | |
| run: make -B test-e2e | |
| - name: Debug on failure | |
| if: failure() | |
| run: | | |
| docker ps -a | |
| docker inspect $(docker ps -a -q) |