From 0d8611dbd4d880da20d54acbbf59993db76e45f0 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Tue, 12 Nov 2024 09:38:46 -0500 Subject: [PATCH] Testing Suite cleanup --- .github/workflows/acceptancetests.yml | 15 --------------- .github/workflows/codeStyleAnalysis.yml | 22 ++++++++++++++++++++++ .github/workflows/makefile.yml | 1 + .github/workflows/staticAnalysis.yml | 7 +++++-- .github/workflows/unittests.yml | 24 ++++++++++++++++++++++++ 5 files changed, 52 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/codeStyleAnalysis.yml create mode 100644 .github/workflows/unittests.yml diff --git a/.github/workflows/acceptancetests.yml b/.github/workflows/acceptancetests.yml index 0c0bd34ea..102962d4d 100644 --- a/.github/workflows/acceptancetests.yml +++ b/.github/workflows/acceptancetests.yml @@ -8,21 +8,6 @@ on: branches: [ "master", "*.*-dev" ] jobs: - unit: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v3 - - - name: Run Unit Tests - run: make unit-test - - - name: Store screenshots - uses: actions/upload-artifact@v4 - if: failure() - with: - name: unit-test - path: tests/_output - acceptance: runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/codeStyleAnalysis.yml b/.github/workflows/codeStyleAnalysis.yml new file mode 100644 index 000000000..1c291999a --- /dev/null +++ b/.github/workflows/codeStyleAnalysis.yml @@ -0,0 +1,22 @@ +name: Static Analysis + +on: + workflow_dispatch: + push: + branches: [ "master", "*.*-dev" ] + pull_request: + branches: [ "master", "*.*-dev" ] + +jobs: + phpstan: + + runs-on: ubuntu-24.04 + + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: make build-dev + + - name: Run Pint Analysis + run: make phpstan diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 719081595..58e1aee0b 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -1,6 +1,7 @@ name: Makefile CI on: + workflow_dispatch: push: branches: [ "master", "*.*-dev" ] pull_request: diff --git a/.github/workflows/staticAnalysis.yml b/.github/workflows/staticAnalysis.yml index de5178938..c520db549 100644 --- a/.github/workflows/staticAnalysis.yml +++ b/.github/workflows/staticAnalysis.yml @@ -1,8 +1,11 @@ name: Static Analysis on: + workflow_dispatch: + push: + branches: [ "master", "*.*-dev" ] pull_request: - branches: [ "master" ] + branches: [ "master", "*.*-dev" ] jobs: phpstan: @@ -16,4 +19,4 @@ jobs: run: make build-dev - name: Run Tests - run: make phpstan + run: make test-code-style diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 000000000..9e5df129d --- /dev/null +++ b/.github/workflows/unittests.yml @@ -0,0 +1,24 @@ +name: Tests + +on: + workflow_dispatch: + push: + branches: [ "master", "*.*-dev" ] + pull_request: + branches: [ "master", "*.*-dev" ] + +jobs: + unit: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v3 + + - name: Run Unit Tests + run: make unit-test + + - name: Store screenshots + uses: actions/upload-artifact@v4 + if: failure() + with: + name: unit-test + path: tests/_output