mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
.gitlab-ci.yml: add go package
This commit is contained in:
parent
40f3392c1e
commit
1094a0c0c7
@ -3,7 +3,7 @@ image: python:alpine
|
|||||||
gitlab-ci-pre-commit:
|
gitlab-ci-pre-commit:
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add git gcc musl-dev
|
- apk update && apk add git gcc musl-dev go
|
||||||
- pip install pre-commit
|
- pip install pre-commit
|
||||||
script:
|
script:
|
||||||
- pre-commit run --all-files --show-diff-on-failure
|
- pre-commit run --all-files --show-diff-on-failure
|
||||||
@ -11,8 +11,6 @@ gitlab-ci-pre-commit:
|
|||||||
# Remember to gitignore .cache/**
|
# Remember to gitignore .cache/**
|
||||||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||||
TERM: dumb
|
TERM: dumb
|
||||||
# TODO: Figure out how to properly Go on Alpine
|
|
||||||
SKIP: shfmt
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- ${PRE_COMMIT_HOME}
|
- ${PRE_COMMIT_HOME}
|
||||||
|
Loading…
Reference in New Issue
Block a user