summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml43
-rwxr-xr-xbors.toml6
2 files changed, 2 insertions, 47 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7d81d1bd..e39a340a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,55 +5,16 @@ on:
pull_request:
jobs:
- php:
- name: Build (PHP ${{ matrix.php }}, ${{ matrix.setup }} setup)
- runs-on: ubuntu-20.04
- timeout-minutes: 6
- strategy:
- fail-fast: false
- matrix:
- php: [ '7.4', '8.0' ]
- setup: [ basic, lowest ]
- steps:
- - name: Set up PHP ${{ matrix.php }}
- uses: shivammathur/setup-php@v2 # action page: <https://github.com/shivammathur/setup-php>
- with:
- php-version: ${{ matrix.php }}
-
- - name: Check out code
- uses: actions/checkout@v2
-
- - name: Syntax check only (lint)
- run: find ./src/ ./tests/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
-
- - name: Get Composer Cache Directory
- id: composer-cache
- run: echo "::set-output name=dir::$(composer config cache-files-dir)"
-
- - name: Init Composer Cache # Docs: <https://git.io/JfAKn#php---composer>
- uses: actions/cache@v2
- with:
- path: ${{ steps.composer-cache.outputs.dir }}
- key: ${{ runner.os }}-composer-${{ matrix.setup }}-${{ hashFiles('**/composer.json') }}
- restore-keys: ${{ runner.os }}-composer-
-
- - name: Install lowest Composer dependencies
- if: matrix.setup == 'lowest'
- run: composer update --prefer-dist --no-progress --prefer-lowest --ansi
-
- - name: Install basic Composer dependencies
- if: matrix.setup == 'basic'
- run: composer update --prefer-dist --no-progress --ansi
-
golang:
name: Build (Go ${{ matrix.go }}, PHP ${{ matrix.php }})
- runs-on: ubuntu-20.04
+ runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0' ]
go: [ '1.14', '1.15' ]
+ os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go>
diff --git a/bors.toml b/bors.toml
index e56a268a..73a37428 100755
--- a/bors.toml
+++ b/bors.toml
@@ -1,10 +1,4 @@
status = [
-'Build (PHP 7.3, basic setup)',
-'Build (PHP 7.3, lowest setup)',
-'Build (PHP 8.0, basic setup)',
-'Build (PHP 8.0, lowest setup)',
-'Build (Go 1.14, PHP 7.3)',
-'Build (Go 1.15, PHP 7.3)',
'Build (Go 1.14, PHP 7.4)',
'Build (Go 1.15, PHP 7.4)',
'Build (Go 1.14, PHP 8.0)',