Skip to content

Drupal module template #55

Drupal module template

Drupal module template #55

on: pull_request
name: Review
env:
COMPOSE_USER: runner
jobs:
check-github-actions-documentation:
runs-on: ubuntu-latest
name: Check that Github Actions documentation is up to date
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
# https://github.com/arduino/setup-task/tree/56d0cc033e3cecc5f07a291fdd39f29388d21800?tab=readme-ov-file#repo-token
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug
# Enable tmate debugging if debug logging is enabled (cf.
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context)
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: 1 == runner.debug
- run: |
task github-actions:documentation:update
# Check that documentation has not changed.
- run: |
task github-actions:documentation:diff
check-github-actions-template-headers:
runs-on: ubuntu-latest
name: Check that Github Actions template headers are up to date
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
task github-actions:template-headers:update --yes
# Check that files have not changed.
- run: |
git diff --exit-code
check-config-file-headers:
runs-on: ubuntu-latest
name: Check that config file headers are up to date
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
task github-actions:config-headers:update --yes
# Check that files have not changed.
- run: |
git diff --exit-code
check-links:
runs-on: ubuntu-latest
name: Check that workflow and config file links are up to date
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
task github-actions:link --yes
# Check that files have not changed.
- run: |
git diff --exit-code
lint-markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
SKIP_FIX=1 task lint:markdown
lint-shell-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
SKIP_FIX=1 task lint:shell-script