Skip to content

Instantly share code, notes, and snippets.

@johnroyer
Created January 11, 2025 06:11
Show Gist options
  • Save johnroyer/b89da8f60bdcca32b83a0e4c67c50c78 to your computer and use it in GitHub Desktop.
Save johnroyer/b89da8f60bdcca32b83a0e4c67c50c78 to your computer and use it in GitHub Desktop.
Forgejo Runner config
on: [push]
jobs:
"check PHP PSR":
runs-on: ubuntu-22.04
steps:
- name: "check out source code"
uses: "https://code.forgejo.org/actions/checkout@v4"
- name: "setup PHP"
uses: "shivammathur/[email protected]"
with:
php-version: 8.2
tools: phpcs
- name: "check PHP coding style"
run: "phpcs -q"
on:
push:
jobs:
run-php-code-sniffer:
runs-on: ubuntu-22.04
strategy:
matrix:
php-version: ['8.2', '8.3']
steps:
- uses: actions/checkout@v4
- name: "Setup PHP Action"
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-version }}
tools: phpcs
- name: "check PHP coding style"
run: "phpcs -q"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment