diff --git a/.github/actions-qa-ci.yml b/.github/actions-qa-ci.yml new file mode 100644 index 0000000..482b7cd --- /dev/null +++ b/.github/actions-qa-ci.yml @@ -0,0 +1,11 @@ +version: 1 +analyse: + unanalysed: + - path: yaml/fail/analyse-workflow/workflows/** + justification: + hazard: "A fixture workflow that deliberately carries an actionlint expression error, so the YAML lane can prove it fails" + scope: "Only the YAML lane's failing workflow fixture, which GitHub never runs because it lies outside .github/workflows" + - path: yaml/pass/workflows/** + justification: + hazard: "A fixture workflow kept as data for the YAML lane's actionlint step, never as a workflow of this repository" + scope: "Only the YAML lane's passing workflow fixture, which GitHub never runs because it lies outside .github/workflows" diff --git a/.github/workflows/actions-qa-ci.yml b/.github/workflows/actions-qa-ci.yml new file mode 100644 index 0000000..7e35aad --- /dev/null +++ b/.github/workflows/actions-qa-ci.yml @@ -0,0 +1,15 @@ +name: actions-qa-ci +on: + pull_request: +permissions: + contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + actions-qa-ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Check the workflows with actions-qa-ci + uses: LongTermSupport/actions-qa-ci@ad81f5c1a62b26b8dbffd51a2180df7ba3c0120b # v0.2.0 diff --git a/.github/workflows/bash.yml b/.github/workflows/bash.yml index 1519deb..ebb1218 100644 --- a/.github/workflows/bash.yml +++ b/.github/workflows/bash.yml @@ -1,5 +1,11 @@ name: bash -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/c.yml b/.github/workflows/c.yml index 8d4a4fe..f16cc76 100644 --- a/.github/workflows/c.yml +++ b/.github/workflows/c.yml @@ -1,5 +1,11 @@ name: c -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 1e92d68..c1a808b 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -1,5 +1,11 @@ name: cpp -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index 52b354f..8831eae 100644 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -1,6 +1,13 @@ name: csharp -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/css.yml b/.github/workflows/css.yml index a38260d..c209031 100644 --- a/.github/workflows/css.yml +++ b/.github/workflows/css.yml @@ -1,6 +1,13 @@ name: css -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/fsharp.yml b/.github/workflows/fsharp.yml index 24ebc8d..efbe4ae 100644 --- a/.github/workflows/fsharp.yml +++ b/.github/workflows/fsharp.yml @@ -1,6 +1,13 @@ name: fsharp -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dc57262..a243a59 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,11 @@ name: go -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/html.yml b/.github/workflows/html.yml index 9cca0f9..e344d2f 100644 --- a/.github/workflows/html.yml +++ b/.github/workflows/html.yml @@ -1,6 +1,13 @@ name: html -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 5f55b47..4c5bb17 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -1,6 +1,13 @@ name: java -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index ff6ad74..ff7c0c3 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -1,6 +1,13 @@ name: javascript -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/kotlin.yml b/.github/workflows/kotlin.yml index 2f9e7c2..6e134c9 100644 --- a/.github/workflows/kotlin.yml +++ b/.github/workflows/kotlin.yml @@ -1,6 +1,13 @@ name: kotlin -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f3db7ba..6251e6d 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,6 +1,13 @@ name: php -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/powershell.yml b/.github/workflows/powershell.yml index 03d34f6..19945d3 100644 --- a/.github/workflows/powershell.yml +++ b/.github/workflows/powershell.yml @@ -1,6 +1,13 @@ name: powershell -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 464b6f4..6ef8bab 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,6 +1,13 @@ name: python -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 7c76caf..6a47c22 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -1,6 +1,13 @@ name: ruby -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 92f42bd..c87bb41 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,5 +1,11 @@ name: rust -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/sql.yml b/.github/workflows/sql.yml index 91a0192..ea094a1 100644 --- a/.github/workflows/sql.yml +++ b/.github/workflows/sql.yml @@ -1,5 +1,11 @@ name: sql -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 9b40983..d360e2f 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,6 +1,13 @@ name: swift -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index b3ad66b..1f7a697 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -1,6 +1,13 @@ name: typescript -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/yaml.yml b/.github/workflows/yaml.yml index bf7bcd4..f5bc129 100644 --- a/.github/workflows/yaml.yml +++ b/.github/workflows/yaml.yml @@ -1,5 +1,11 @@ name: yaml -on: [push, workflow_dispatch] +on: + push: + paths-ignore: ["**.md", "docs/**"] + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: read jobs: