mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
* ci: use github-pr-review reporter for shellcheck * ci: use default reporter Co-authored-by: toast-gear <toast-gear@users.noreply.github.com>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Validate Runners
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
paths:
|
|
- 'runner/**'
|
|
- 'test/entrypoint/**'
|
|
- '!**.md'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: runner / shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: shellcheck
|
|
uses: reviewdog/action-shellcheck@v1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
path: "./runner"
|
|
pattern: |
|
|
*.sh
|
|
*.bash
|
|
update-status
|
|
# Make this consistent with `make shellsheck`
|
|
shellcheck_flags: "--shell bash --source-path runner"
|
|
exclude: "./.git/*"
|
|
check_all_files_with_shebangs: "false"
|
|
# Set this to "true" once we addressed all the shellcheck findings
|
|
fail_on_error: "false"
|
|
test-runner-entrypoint:
|
|
name: Test entrypoint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run tests
|
|
run: |
|
|
make acceptance/runner/entrypoint
|