Skip to content

Commit

Permalink
build(ci): lint GitHub Actions workflows
Browse files Browse the repository at this point in the history
Issues: #27
  • Loading branch information
geoffreyvanwyk committed Jan 8, 2024
1 parent e35372e commit fca0918
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,29 @@ jobs:
path: widgets_service_installer
retention-days: 1

actionlint:
name: GitHub Actions Workflows Lint
needs: createrole
runs-on: ubuntu-22.04

steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ansible-role-widgets_service_installer
path: ansible-role-widgets_service_installer

- name: Set up linter
run: go install github.com/rhysd/actionlint/cmd/actionlint@latest

- name: Lint workflows
run: |
cd ansible-role-widgets_service_installer
actionlint
yamllint:
name: YAML Lint
needs: createrole
needs: actionlint
runs-on: ubuntu-22.04

steps:
Expand Down

0 comments on commit fca0918

Please sign in to comment.