mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-21 18:59:22 +01:00
Add gitlab-ci configuration
This commit is contained in:
parent
c938cf1ef9
commit
9013070168
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
*~
|
||||
.~*#
|
||||
.cache/**
|
||||
|
||||
# ---> TeX
|
||||
## Core latex/pdflatex auxiliary files:
|
||||
|
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
@ -0,0 +1,16 @@
|
||||
# Based on https://pre-commit.com
|
||||
image: python:alpine
|
||||
gitlab-ci-pre-commit:
|
||||
stage: build
|
||||
before_script:
|
||||
- apk add --no-cache git gcc musl-dev go texlive
|
||||
- pip install pre-commit
|
||||
script:
|
||||
- pre-commit run --all-files --show-diff-on-failure
|
||||
variables:
|
||||
# Remember to gitignore .cache/**
|
||||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||
TERM: dumb
|
||||
cache:
|
||||
paths:
|
||||
- ${PRE_COMMIT_HOME}
|
@ -30,6 +30,13 @@ repos:
|
||||
hooks:
|
||||
- id: doctoc
|
||||
args: [--update-only, --notitle]
|
||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||
rev: 0.23.0
|
||||
hooks:
|
||||
#- id: check-dependabot
|
||||
#- id: check-github-actions
|
||||
#- id: check-github-workflows
|
||||
- id: check-gitlab-ci
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: "v3.0.0-alpha.9-for-vscode"
|
||||
hooks:
|
||||
|
Loading…
Reference in New Issue
Block a user