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
|
|
|
|
|
2020-03-02 14:19:26 +01:00
|
|
|
- name: Coveralls
|
2020-03-02 14:33:47 +01:00
|
|
|
run: php vendor/bin/php-coveralls -v --coverage_clover=coverage.xml
|
2020-03-02 14:19:26 +01:00
|
|
|
env:
|
|
|
|
COVERALLS_RUN_LOCALLY: 1
|
|
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|