Skip to content

chore: remove reusable workflow and pass github-token to releases (#5) #37

chore: remove reusable workflow and pass github-token to releases (#5)

chore: remove reusable workflow and pass github-token to releases (#5) #37

Workflow file for this run

name: Test
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./... -v
- name: Build binary
run: make build
- name: Self-validate
run: ./bin/structlint validate --config .structlint.yaml
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m