mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-03-25 22:17:25 +00:00
Run CI through prek on Arch
This commit is contained in:
47
.github/workflows/matrix.yml
vendored
47
.github/workflows/matrix.yml
vendored
@@ -9,34 +9,31 @@ name: Matrix CI
|
|||||||
|
|
||||||
on: [push, pull_request] # yamllint disable-line rule:truthy
|
on: [push, pull_request] # yamllint disable-line rule:truthy
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
yamllint:
|
prek:
|
||||||
name: yamllint
|
name: Run prek hooks
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
- name: Run yamllint
|
|
||||||
uses: frenck/action-yamllint@v1.5.0
|
|
||||||
ansible-lint:
|
|
||||||
name: ansible-lint
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker.io/archlinux:base-devel
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# git must be installed before checkout so it does a proper clone
|
||||||
|
# (with .git directory) instead of a tarball download.
|
||||||
|
- name: Install git
|
||||||
|
run: pacman -Sy --noconfirm git
|
||||||
|
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Run ansible-lint
|
- name: Install dependencies
|
||||||
uses: ansible/ansible-lint@v26.3.0
|
run: pacman -S --noconfirm --needed just mise python
|
||||||
with:
|
|
||||||
args: "roles/custom"
|
- name: Run prek hooks
|
||||||
setup_python: "true"
|
run: |
|
||||||
working_directory: ""
|
# The checkout action sets safe.directory using its own bundled
|
||||||
requirements_file: requirements.yml
|
# git, which is separate from the pacman-installed git that prek uses.
|
||||||
precommit:
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
name: Run pre-commit
|
just prek-run-on-all
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
- name: Run pre-commit
|
|
||||||
uses: pre-commit/action@v3.0.1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user