From 1bf5abb10f7e0520c9feaaca34c0b1e4a7d9d2d8 Mon Sep 17 00:00:00 2001 From: dannc Date: Tue, 10 Oct 2023 11:22:29 +0700 Subject: [PATCH] ci: do not run tests for tags --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78f28e0..8850126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ on: jobs: tests: runs-on: ubuntu-22.04 + if: github.event_name == 'push' && contains(github.ref, 'refs/heads/') strategy: matrix: php_version: ['8.1', '8.2'] @@ -29,6 +30,7 @@ jobs: run: composer run pest-coverage lint: runs-on: ubuntu-22.04 + if: github.event_name == 'push' && contains(github.ref, 'refs/heads/') strategy: matrix: php_version: ['80100', '80200'] @@ -43,6 +45,7 @@ jobs: analyze: runs-on: ubuntu-22.04 + if: github.event_name == 'push' && contains(github.ref, 'refs/heads/') container: dannecron/php-for-dev:8.2 steps: - name: Check out repository @@ -84,10 +87,6 @@ jobs: build-tag: runs-on: ubuntu-22.04 if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - needs: - - tests - - lint - - analyze steps: - name: Check out repository uses: actions/checkout@v3