From 67e593ab25061e470115daebb51424edf05b0158 Mon Sep 17 00:00:00 2001 From: Maarten Paauw Date: Sat, 24 Aug 2024 12:19:01 +0200 Subject: [PATCH] ci: run unit tests only linux only --- .github/workflows/code-coverage.yml | 8 ++------ .github/workflows/run-tests.yml | 9 ++++----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 9a0e456..88ef173 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -2,13 +2,9 @@ name: code-coverage on: push: - branches: - - develop - - main + branches: [main] pull_request: - branches: - - develop - - main + branches: [main] jobs: test: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0d22ac1..08d0ab7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,18 +2,17 @@ name: run-tests on: push: - branches: [develop, main] + branches: [main] pull_request: - branches: [develop, main] + branches: [main] jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest timeout-minutes: 5 strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] php: [8.3, 8.2, 8.1] laravel: [11.*, 10.*] stability: [prefer-lowest, prefer-stable] @@ -26,7 +25,7 @@ jobs: - laravel: 11.* php: 8.1 - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} steps: - name: Checkout code