build(deps): bump golangci/golangci-lint-action from 3 to 6 #1084
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
cleanup-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rokroskar/workflow-run-cleanup-action@master | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | |
build: | |
runs-on: ubuntu-cpu16-ram64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- uses: technote-space/get-diff-action@v5 | |
id: git_diff | |
with: | |
SUFFIX_FILTER: | | |
.go | |
.mod | |
.sum | |
- name: Pull LFS files | |
run: git lfs pull | |
- run: | | |
make build | |
if: "env.GIT_DIFF != ''" | |
build-nix: | |
runs-on: ubuntu-cpu16-ram64 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haqq-network/nix-action@master | |
with: | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
cacheKeyPostfix: ${{ hashFiles('**/go.sum') }} | |
- name: Build nix package | |
run: | | |
nix build .#haqq --print-build-logs | |
check-nix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haqq-network/nix-action@master | |
with: | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
cacheKeyPostfix: ${{ hashFiles('**/go.sum') }} | |
- name: Check if nix package and Makefile versions match | |
run: | | |
nix develop --impure .#ci --command ci-check-version | |
- name: Check if gomod2nix is up to date | |
run: | | |
nix develop --impure .#ci --command ci-check-gomod2nix |