Skip to content

Commit

Permalink
ci: do not run tests for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Dannecron committed Oct 10, 2023
1 parent 5e2981a commit 1bf5abb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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']
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1bf5abb

Please sign in to comment.