build(deps): bump github.com/golangci/golangci-lint from 1.62.0 to 1.62.2 in /tools #100
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- name: Build | |
run: make ci | |
- name: Upload coverage | |
uses: actions/upload-artifact@v4 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
name: coverage-${{ matrix.os }} | |
path: coverage.* | |
- run: goreleaser release --rm-dist --snapshot | |
if: ${{ runner.os == 'Linux' && github.event_name != 'pull_request' }} | |
- name: Upload dist | |
uses: actions/upload-artifact@v4 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
name: dist-${{ matrix.os }} | |
path: dist | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
fail_ci_if_error: true | |
file: ./coverage.out | |
token: ${{ secrets.CODECOV_TOKEN }} |