Skip to content

Commit

Permalink
simplify github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Nov 30, 2023
1 parent 1e9d5ad commit 5d04808
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,8 @@ name: Build
on: [ push, pull_request ]

jobs:
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.3"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"

tests:
name: "Tests"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
Expand All @@ -39,10 +18,15 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run phpcs"
if: ${{ matrix.php-version == '8.3' }}
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit"

0 comments on commit 5d04808

Please sign in to comment.