0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +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:
David Goodwin 2021-09-29 20:55:23 +01:00
parent f1b41e87fa
commit d3a2fe8845

View File

@ -3,7 +3,30 @@ name: GitHubBuild
on: [push] on: [push]
jobs: 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 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -18,9 +41,6 @@ jobs:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
tools: composer tools: composer
- name: Validate composer.json and composer.lock
run: composer validate
- name: setup templates_c - name: setup templates_c
run: mkdir templates_c || true run: mkdir templates_c || true
@ -31,17 +51,9 @@ jobs:
run: composer install --prefer-dist -n run: composer install --prefer-dist -n
- name: Build/test - name: Build/test
run: composer build run: composer test
- name: build coveralls coverage build_coverage_report:
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:
needs: [build] needs: [build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: