diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 0000000..07158ac --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,3 @@ +self-hosted-runner: + labels: + - ci-enterprise-medium diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b0da9f4..a4f9bef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: 'Lint' +name: "Lint" on: pull_request: @@ -12,15 +12,21 @@ jobs: lint: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, ci-enterprise-medium] runs-on: ${{ matrix.os }} steps: - name: Checkout repo uses: actions/checkout@v6 - - name: actionlint + - name: actionlint repo itself uses: raven-actions/actionlint@v2 - name: actionlint examples uses: raven-actions/actionlint@v2 with: files: "examples/*.yml, examples/*.yaml" + + - name: Install yamllint + run: pip install yamllint + + - name: Lint Actions + run: yamllint -c ./.yamllint ./*-* diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..aa53554 --- /dev/null +++ b/.yamllint @@ -0,0 +1,2 @@ +rules: + document-start: disable