feat: adds new classes and method signatures #166
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint, Format, and Test | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
APP_ID: ${{ secrets.APP_ID }} | |
EXAMPLE_AUTH_TOKEN: ${{ secrets.EXAMPLE_AUTH_TOKEN }} | |
EXAMPLE_USER_ID: ${{ secrets.EXAMPLE_USER_ID }} | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: phpcs, cs2pr | |
- name: Lint | |
run: phpcs -q --standard=PSR12 --report=checkstyle custom | cs2pr | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: php-cs-fixer, cs2pr | |
- name: Format | |
run: php-cs-fixer fix --dry-run --allow-risky=yes --format=checkstyle --rules=@PSR12 | cs2pr | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Install dependencies | |
run: composer install | |
- name: Test | |
run: ./vendor/bin/phpunit custom/test/ |