Skip to content

Commit

Permalink
CI: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 28, 2021
1 parent 71b138e commit b613c82
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: "build"

on: [push, pull_request]
on:
pull_request:
paths-ignore:
- ".docs/**"
push:
branches:
- "master"
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday

env:
extensions: "json"
cache-version: "1"
composer-version: "v1"
composer-install: "composer update --no-progress --prefer-dist"
composer-install: "composer update --no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"

jobs:
qa:
Expand Down Expand Up @@ -136,10 +144,10 @@ jobs:
include:
- php-version: "7.2"
operating-system: "ubuntu-latest"
composer-args: "--prefer-lowest --prefer-stable"
composer-args: "--prefer-lowest"
- php-version: "8.0"
operating-system: "ubuntu-latest"
composer-args: "--ignore-platform-reqs"
composer-args: ""
fail-fast: false

continue-on-error: "${{ matrix.php-version == '8.0' }}"
Expand Down Expand Up @@ -249,7 +257,7 @@ jobs:
run: "${{ env.composer-install }}"

- name: "Tests"
run: "make coverage"
run: "make coverage-clover"

- name: "Coveralls.io"
env:
Expand Down

0 comments on commit b613c82

Please sign in to comment.