Merge pull request #437 from Ehco1996/fix/network-failure-resilience #233
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: check-code | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "pkg/**" | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "pkg/**" | |
| - "go.mod" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.26.1" | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: tidy | |
| run: make tidy | |
| - name: lint | |
| run: make lint | |
| - name: test | |
| run: make test | |
| - name: build | |
| run: make build |