Skip to content

Commit

Permalink
feature: split workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadschaak committed Sep 15, 2023
1 parent 0ad4256 commit 174b606
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 8 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: qa

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read

jobs:
qa:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php-version: "8.1"
dependencies: "lowest"
- php-version: "8.1"
dependencies: "highest"
- php-version: "8.2"
dependencies: "highest"

steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: PHP Setup
uses: shivammathur/setup-php@v2
with:
php-version: 8.2

- name: Validate composer.json and composer.lock
run: composer validate --strict

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

- name: Check CS-Fixer
run: composer cs:check

- name: Check PHPStan
run: composer phpstan

- name: Execute tests
run: composer tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-and-qa
name: test

on:
push:
Expand All @@ -11,7 +11,7 @@ permissions:
contents: read

jobs:
TestAndQaJobs:
test:
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -42,11 +42,5 @@ jobs:
with:
dependency-versions: ${{ matrix.dependencies }}

- name: Check CS-Fixer
run: composer cs:check

- name: Check PHPStan
run: composer phpstan

- name: Execute tests
run: composer tests

0 comments on commit 174b606

Please sign in to comment.