jx/.gitea/workflows/lint.yaml
Matthew Rich c89e63c39f
Some checks failed
Lint / golangci-lint (push) Failing after 9m37s
Declarative Tests / test (push) Failing after 17s
debug volume config
2024-05-25 17:13:08 -07:00

39 lines
1.0 KiB
YAML

name: Lint
on:
- push
jobs:
lint:
name: golangci-lint
runs-on: ubuntu-latest
container:
env:
SSH_AUTH_SOCK: /tmp/ssh.sock
ENVIRONMENT: dev
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/gitconfig:/etc/gitconfig:ro"
- "/${{ env.SSH_AUTH_SOCK }}:/tmp/ssh.sock"
- "/${{ vars.GITEA_WORKSPACE }}:/go/src"
- "/opt/gitea/act_runner/.ssh/known_hosts:/root/.ssh/known_hosts"
- "/opt/gitea/act_runner/.gitconfig:/root/.gitconfig:ro"
- "/opt/gitea/act_runner/.git-credentials:/root/.git-credentials:ro"
- "/etc/ssl/certs:/etc/ssl/certs:ro"
options: --cpus 20
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.22.1"
cache: false
- name: Check out code
uses: actions/checkout@v3
- name: Get packages
run: go get ./...
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55