Awesome
go-test-workflow
GitHub Actions Reusable Workflow for testing Go application
How to use
---
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: {}
jobs:
test:
uses: suzuki-shunsuke/go-test-workflow/.github/workflows/test.yaml@d066660eecb8f8a005d498a561d1938e3a843571 # v0.4.1
with:
aqua_policy_config: aqua-policy.yaml
aqua_version: v1.32.3
go-version: 1.19.5
golangci-lint-timeout: 120s
permissions:
pull-requests: write
contents: read # To checkout private repository
Workflow
Requirements
- reviewdog
- golangci-lint
aqua g -i reviewdog/reviewdog golangci/golangci-lint