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 decdf16
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: qa

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

permissions:
contents: read

jobs:
qa:
runs-on: ubuntu-latest

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 decdf16

Please sign in to comment.