Skip to content

Commit

Permalink
.github: merge ci and ansible workflows, fix ansible-lint
Browse files Browse the repository at this point in the history
These need to both always run because github doesn't allow you to put
conditions on requiring check passes for branch protection
  • Loading branch information
intarga committed Feb 18, 2025
1 parent b3b6538 commit f9cc4ec
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Continuous integration

on:
pull_request:
paths-ignore:
- 'ansible/**'
types:
- opened
- reopened
Expand Down Expand Up @@ -84,3 +82,25 @@ jobs:
- name: Run Go tests
working-directory: migrations
run: go test -v ./...

ansible-format:
name: Check yaml formatting of ansible files
runs-on: ubuntu-latest
container: ghcr.io/google/yamlfmt:latest
steps:
- uses: actions/checkout@v4

- name: Check yaml format
working-directory: ansible
run: yamlfmt -lint

ansible-lint:
name: Lint ansible files
runs-on: ubuntu-latest
steps:
- name: Run ansible-lint
uses: ansible/ansible-lint@main
with:
setup_python: "true"
working_directory: "ansible"
requirements_file: "requirements.yml"

0 comments on commit f9cc4ec

Please sign in to comment.