Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Run lint only once #595

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/exercise-lint-phpcs-psr-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,21 @@ on:
push:
branches:
- main
- master
pull_request:

jobs:
test:
name: PHP ${{ matrix.php-version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
name: PHPCS Linting - ${{ github.event_name }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [8.0, 8.1, 8.2]
os: [ubuntu-22.04, windows-2022, macOS-latest]

steps:
- name: Set git line endings
if: ${{ matrix.os == 'windows-2022' }}
run: |
git config --system core.autocrlf false
git config --system core.eol lf

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
with:
php-version: ${{ matrix.php-version }}
php-version: '8.2'
extensions: gmp
tools: composer

Expand Down