@@ -19,58 +19,6 @@ concurrency:
1919 cancel-in-progress : true
2020
2121jobs :
22- lint :
23- name : " ⌨ Lint & unittests"
24- runs-on : ubuntu-latest
25- steps :
26- - name : Set up Go ${{ env.GO_VERSION }}
27- uses : actions/setup-go@v5
28- with :
29- go-version : ${{ env.GO_VERSION }}
30- id : go
31-
32- - name : Check out code into the Go module directory
33- uses : actions/checkout@v6
34- with :
35- ref : ${{ github.event.pull_request.head.sha }}
36-
37- - name : Apt update
38- run : sudo apt update
39-
40- # This is needed for the container upload dependencies
41- - name : Install libgpgme devel package
42- run : sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
43-
44- - name : Extract golangci-lint version from Makefile
45- id : golangci_lint_version
46- run : echo "GOLANGCI_LINT_VERSION=$(awk -F '=' '/^GOLANGCI_LINT_VERSION *=/{print $2}' Makefile)" >> "$GITHUB_OUTPUT"
47-
48- - name : Run golangci-lint
49- uses : golangci/golangci-lint-action@v9
50- with :
51- version : ${{ steps.golangci_lint_version.outputs.GOLANGCI_LINT_VERSION }}
52- args : --timeout 5m0s
53- working-directory : bib
54-
55- - name : Run unit tests
56- run : (cd bib && go test -race ./...)
57-
58- shellcheck :
59- name : " 🐚 Shellcheck"
60- runs-on : ubuntu-24.04
61- steps :
62- - uses : actions/checkout@v6
63- with :
64- ref : ${{ github.event.pull_request.head.sha }}
65- - name : Run ShellCheck
66- uses : ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38
67- with :
68- ignore : vendor # We don't want to fix the code in vendored dependencies
69- env :
70- # don't check /etc/os-release sourcing, allow useless cats to live inside our codebase, and
71- # allow seemingly unreachable commands
72- SHELLCHECK_OPTS : -e SC1091 -e SC2002 -e SC2317
73-
7422 collect_tests :
7523 runs-on : ubuntu-latest
7624 outputs :
13179 - name : Install python test deps
13280 run : |
13381 # make sure test deps are available for root
134- sudo -E pip install --user -r test/requirements.txt
82+ sudo -E pip install --user -r test/bib/ requirements.txt
13583 - name : Workarounds for GH runner diskspace
13684 run : |
13785 # use custom basetemp here because /var/tmp is on a smaller disk
0 commit comments