Add CI workflows
This commit is contained in:
parent
b7cd657dce
commit
03ae70d2a5
1 changed files with 23 additions and 0 deletions
23
.gitea/workflows/test.yml
Normal file
23
.gitea/workflows/test.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
name: tests
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: run linter
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install package dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get install \
|
||||||
|
ansible-lint \
|
||||||
|
jsonlint \
|
||||||
|
shellcheck \
|
||||||
|
yamllint
|
||||||
|
ln -s /usr/bin/jsonlint-php /usr/local/bin/jsonlint
|
||||||
|
- name: Run linters
|
||||||
|
run: make -C ./tests
|
Loading…
Add table
Add a link
Reference in a new issue