diff options
author | Valery Piashchynski <[email protected]> | 2020-12-14 19:24:26 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-14 19:24:26 +0300 |
commit | ac2fc94112d8103cc8891ffdd454c90fbe0f3275 (patch) | |
tree | fb57bf4ed0a39d587b95625aefb96f046ba9c8df /.github/workflows | |
parent | 41818d6c2bc83b69975b8dbff0b9a4f9ecb7e1a3 (diff) |
Remove PHP from CI, add macos and windows
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 43 |
1 files changed, 2 insertions, 41 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> |