mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
try updating github action to have more meaningful labels and not try the matrix if psalm/format fail
This commit is contained in:
parent
f1b41e87fa
commit
d3a2fe8845
40
.github/workflows/php.yml
vendored
40
.github/workflows/php.yml
vendored
@ -3,7 +3,30 @@ name: GitHubBuild
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
tools: composer
|
||||
|
||||
- name: check composer
|
||||
run: composer validate
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist -n
|
||||
|
||||
- name: check formatting
|
||||
run: composer check-format
|
||||
|
||||
- name: psalm static analysis
|
||||
run: composer psalm
|
||||
|
||||
testsuite:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@ -18,9 +41,6 @@ jobs:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
tools: composer
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate
|
||||
|
||||
- name: setup templates_c
|
||||
run: mkdir templates_c || true
|
||||
|
||||
@ -31,17 +51,9 @@ jobs:
|
||||
run: composer install --prefer-dist -n
|
||||
|
||||
- name: Build/test
|
||||
run: composer build
|
||||
run: composer test
|
||||
|
||||
- name: build coveralls coverage
|
||||
run: php -m xdebug.mode=coverage vendor/bin/phpunit tests
|
||||
|
||||
- name: Coveralls
|
||||
run: vendor/bin/php-coveralls ./clover.xml || true
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
||||
post_build:
|
||||
build_coverage_report:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user