0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/.github/workflows/php.yml

36 lines
782 B
YAML
Raw Normal View History

2020-03-02 15:17:41 +01:00
name: GitHubBuild
2020-01-10 14:24:58 +01:00
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
run: composer validate
2020-01-10 14:47:16 +01:00
- name: setup templates_c
run: mkdir templates_c || true
2020-01-31 16:27:43 +01:00
- name: touch config.local.php
2020-01-31 17:15:42 +01:00
run: touch config.local.php && php -v
2020-01-31 16:27:43 +01:00
2020-01-10 14:24:58 +01:00
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
2020-02-23 20:01:09 +01:00
- name: Build/test
run: composer build
2020-03-02 14:33:47 +01:00
- name: setup coveralls
run: mkdir -p build/logs || true
- name: Coveralls
2020-03-02 14:33:47 +01:00
run: php vendor/bin/php-coveralls -v --coverage_clover=coverage.xml
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}