Skip to content

feat: add dependency updater command (#222) #157

feat: add dependency updater command (#222)

feat: add dependency updater command (#222) #157

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
concurrency:
# Cancel superseded PR runs to save CI minutes; let push/main runs finish so
# main is always validated directly (catches anything pushed straight to main).
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
mago:
name: Mago (PHP lint + format check)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up PHP
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
with:
php-version: "8.4"
tools: composer:v2
- name: Cache Composer packages
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-composer-lint-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-composer-lint
- name: Install dev dependencies
run: composer install --no-interaction --no-progress
- name: Mago lint
run: vendor/bin/mago lint
- name: Mago format check
run: vendor/bin/mago fmt --dry-run
trunk:
name: Trunk Check (yaml, markdown, shell, actions, …)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
# save-annotations stores findings as an artifact instead of posting them
# to the GitHub Checks API. That avoids the *second* check-run that used to
# duplicate this job's red status — and the 403 it would otherwise throw
# without `checks: write`. Findings still print in the job log and fail
# this job via its exit code; grant `checks: write` + drop this only if you
# want inline PR annotations (and the extra check-run) back.
- name: Trunk Check
uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # v1.3.1
with:
save-annotations: true