Make changes to support testing individual commands, add a few tests … #28
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: "go-linter" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
merge_group: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
env: | |
GOPROXY: https://proxy.golang.org/,direct | |
GOPRIVATE: "" | |
GONOPROXY: "" | |
GONOSUMDB: github.com/github/* | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ vars.GOVERSION }} | |
check-latest: true | |
- uses: actions/checkout@v4 | |
- name: Lint | |
# This also does checkout, setup-go, and proxy setup. | |
uses: github/[email protected] | |
with: | |
strict: true | |
go-version: ${{ vars.GOVERSION }} | |
goproxy-token: ${{secrets.GOPROXY_TOKEN}} |