Update docker/login-action action to v3.6.0 #36
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: Service testing action | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout new code for testing | |
| uses: actions/checkout@v5 | |
| - name: Setup go testing infrastructure | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 'stable' | |
| # run go test with different go versions | |
| test: | |
| timeout-minutes: 5 | |
| name: Unit tests (Go ${{ matrix.go }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: ["stable"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go${{ matrix.go }}-test-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go${{ matrix.go }}-test- | |
| - name: Set up gotestfmt | |
| uses: gotesttools/gotestfmt-action@v2 | |
| with: | |
| # Optional: pass GITHUB_TOKEN to avoid rate limiting. | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run tests with coverage | |
| env: | |
| GOTOOLCHAIN: go1.25.0+auto | |
| run: go test -race -json -v ./... 2>&1 | gotestfmt -hide all |