| 1 |
name: ci |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
branches: '*' |
| 6 |
push: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
- main |
| 10 |
- 'release-*' |
| 11 |
|
| 12 |
jobs: |
| 13 |
test: |
| 14 |
strategy: |
| 15 |
matrix: |
| 16 |
os: [ubuntu, macos, windows] |
| 17 |
golang: ['1.13', '1.16', '1.17'] |
| 18 |
# currently, we cannot run non-x86_64 machines on Github Actions cloud env. |
| 19 |
runs-on: ${{ matrix.os }}-latest |
| 20 |
name: CI golang ${{ matrix.golang }} on ${{ matrix.os }} |
| 21 |
steps: |
| 22 |
- uses: actions/checkout@v2 |
| 23 |
- uses: actions/setup-go@v2 |
| 24 |
with: |
| 25 |
go-version: ${{ matrix.golang }} |
| 26 |
- name: Change GO11MODULES |
| 27 |
run: go env -w GO111MODULE=auto |
| 28 |
- name: Install requirements |
| 29 |
run: | |
| 30 |
go get github.com/bmizerany/assert |
| 31 |
go get github.com/philhofer/fwd |
| 32 |
go get github.com/tinylib/msgp |
| 33 |
- name: Test |
| 34 |
run: go test -v ./fluent |