[skip-release] Update github-actions to v6 #30
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: build-push | ||
| on: | ||
| push: | ||
| workflow_dispatch: | ||
| jobs: | ||
| lint-test: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 | ||
| with: | ||
| go-version-file: "go.mod" | ||
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9 | ||
| with: | ||
| version: latest | ||
| - name: Install dependencies | ||
| run: go get . | ||
| - run: go build | ||
| - name: unit test | ||
| run: go test -race -v ./... | ||
| - name: coverage | ||
| run: go test -v -coverprofile=coverage.out -covermode=atomic ./... | ||
| - name: upload coverage to codecov | ||
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5 | ||
| with: | ||
| files: ./coverage.out | ||
| fail_ci_if_error: false | ||
| env: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| run: | ||
| needs: [lint-test] | ||
| uses: libops/.github/.github/workflows/build-push-ghcr.yaml@main | ||
|
Check failure on line 43 in .github/workflows/lint-test-build.yml
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| secrets: inherit | ||