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

feature: split workflows #16

Merged
merged 6 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved

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

permissions:
contents: read

jobs:
qa:
runs-on: ubuntu-latest
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved

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
jdreesen marked this conversation as resolved.
Show resolved Hide resolved
run: composer validate --strict
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved

- 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
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved

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

jobs:
TestAndQaJobs:
test:
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
lukadschaak marked this conversation as resolved.
Show resolved Hide resolved

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