Skip to content

Commit

Permalink
ci: lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
escaped committed Nov 26, 2021
1 parent a07c517 commit cd46dca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ name: Sanity checks
on: [push]

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash

pre-commit:
runs-on: ubuntu-latest

Expand Down
11 changes: 11 additions & 0 deletions {{cookiecutter.project_slug}}/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ on:
- "**"
{% raw %}
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash

lint-cruft:
name: Check if automatic project update was successful
runs-on: ubuntu-latest
Expand Down

0 comments on commit cd46dca

Please sign in to comment.