summaryrefslogtreecommitdiff
path: root/.github/workflows/blank.yml
blob: cb9fe0f352a714f8053bc6964bd055c89cb0dfbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI

on:
  push:
    branches:
    tags:
  pull_request:

jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php: [7.1, 7.2, 7.3, 7.4]
    steps:

    - name: Set up Go 1.12
      uses: actions/setup-go@v1
      with:
        go-version: 1.12
      id: go

    - name: Check out code into the Go module directory
      uses: actions/checkout@v1

    - name: Install dependencies and download binary roadrunner
      run: |
        export GO111MODULE=on
        php${{ matrix.php }} -v
        composer -V
        go mod download
        composer install --no-interaction --prefer-source
        find src/ -name "*.php" -print0 | xargs -0 -n1 -P8 php${{ matrix.php }} -l
        chmod +x bin/rr && bin/rr get-binary