diff --git a/.github/workflows/actionlint.yaml b/.github/workflows/actionlint.yaml new file mode 100644 index 0000000000..31c06b1e19 --- /dev/null +++ b/.github/workflows/actionlint.yaml @@ -0,0 +1,16 @@ +name: Lint GitHub Actions workflows +on: + workflow_call: + +jobs: + actionlint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3.5.3 + - name: Download actionlint + id: get_actionlint + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.25/scripts/download-actionlint.bash) + shell: bash + - name: Check workflow files + run: ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ed1dbe723c..6d07405eae 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,7 @@ --- jobs: + ActionLint: + uses: ./.github/workflows/actionlint.yaml DCI-Lint: name: DCI-Lint runs-on: ubuntu-20.04