Skip to content

chore(deps): update actions/checkout digest to 08eba0b - autoclosed #153

chore(deps): update actions/checkout digest to 08eba0b - autoclosed

chore(deps): update actions/checkout digest to 08eba0b - autoclosed #153

Workflow file for this run

name: Go
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
name: Lint and Module Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with:
version: latest
- name: golangci-lint js/wasm
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
env:
GOOS: js
GOARCH: wasm
with:
version: latest
- name: Verify go.mod and go.sum are clean
run: |
go mod tidy
git diff --exit-code go.mod go.sum || (echo "go.mod or go.sum is dirty. Run 'go mod tidy' and commit the changes." && exit 1)
test:
name: Test and Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: stable
- name: Run Tests
run: go test ./...
- name: Build cmd/celfmt
run: go build ./cmd/celfmt