jx/.gitea/workflows/lint.yaml
Matthew Rich 4d34cbdb00
Some checks failed
Declarative Tests / test (push) Failing after 5s
Lint / golangci-lint (push) Failing after 3s
debug volume config
2024-05-25 14:32:40 -07:00

41 lines
1.1 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"
- "/${{ vars.BUILDER_VOLUME_HOME }}/.ssh/known_hosts:/root/.ssh/known_hosts"
- "/${{ vars.BUILDER_VOLUME_HOME }}/.gitconfig:/root/.gitconfig:ro"
- "/${{ vars.BUILDER_VOLUME_HOME }}/.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
- run: cat ~/.gitconfig
- run: ls -al ~/.git*
- name: Get packages
run: go get ./...
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55