mirror of
https://github.com/Dannecron/coverage-merger.git
synced 2025-12-25 15:52:34 +03:00
ci: do not run tests for tags
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -12,6 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/')
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php_version: ['8.1', '8.2']
|
php_version: ['8.1', '8.2']
|
||||||
@@ -29,6 +30,7 @@ jobs:
|
|||||||
run: composer run pest-coverage
|
run: composer run pest-coverage
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/')
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php_version: ['80100', '80200']
|
php_version: ['80100', '80200']
|
||||||
@@ -43,6 +45,7 @@ jobs:
|
|||||||
|
|
||||||
analyze:
|
analyze:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/')
|
||||||
container: dannecron/php-for-dev:8.2
|
container: dannecron/php-for-dev:8.2
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
@@ -84,10 +87,6 @@ jobs:
|
|||||||
build-tag:
|
build-tag:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
needs:
|
|
||||||
- tests
|
|
||||||
- lint
|
|
||||||
- analyze
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user