.gitlab-ci.yml: add go package

This commit is contained in:
Aminda Suomalainen 2023-05-22 17:31:32 +03:00
parent 40f3392c1e
commit 1094a0c0c7
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -3,7 +3,7 @@ image: python:alpine
gitlab-ci-pre-commit:
stage: build
before_script:
- apk update && apk add git gcc musl-dev
- apk update && apk add git gcc musl-dev go
- pip install pre-commit
script:
- pre-commit run --all-files --show-diff-on-failure
@ -11,8 +11,6 @@ gitlab-ci-pre-commit:
# Remember to gitignore .cache/**
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
TERM: dumb
# TODO: Figure out how to properly Go on Alpine
SKIP: shfmt
cache:
paths:
- ${PRE_COMMIT_HOME}