Skip to content

build(deps): bump actions/checkout from 4.1.7 to 4.2.1 #67

build(deps): bump actions/checkout from 4.1.7 to 4.2.1

build(deps): bump actions/checkout from 4.1.7 to 4.2.1 #67

Workflow file for this run

name: Test
on: pull_request
jobs:
go_mod:
name: go mod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
- name: go mod
run: |
echo "==> Checking source code with go mod tidy..."
go mod tidy
git diff --exit-code -- go.mod go.sum || \
(echo; echo "Unexpected difference in go.mod/go.sum files. Run 'go mod tidy' command or revert any go.mod/go.sum changes and commit."; exit 1)
go_test:
name: go test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
# Prevent GOPROXY=off errors for analysistest
- run: for moddir in {,x}passes/*/testdata; do pushd $moddir; go mod download; popd; done
- run: go test ./...
goreleaser:
name: goreleaser
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
- name: goreleaser check
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
args: check
- name: goreleaser build
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
args: build --snapshot