1
1
mirror of https://github.com/wader/fq.git synced 2024-12-27 15:42:07 +03:00
fq/.github/workflows/ci.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

2020-06-08 03:29:51 +03:00
name: CI
on:
push:
branches:
- "master"
2020-06-08 03:29:51 +03:00
pull_request:
env:
GOLANGCILINT_VERSION: 1.43.0
2020-06-08 03:29:51 +03:00
jobs:
lint:
2020-06-08 03:29:51 +03:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v${{ env.GOLANGCILINT_VERSION }}
test:
strategy:
matrix:
include:
- os: ubuntu-latest
goarch: amd64
go_test_race_flags: -race
# build and test on 32 bit, does not support race
- os: ubuntu-latest
goarch: "386"
go_test_race_flags: ""
- os: macos-latest
goarch: amd64
go_test_race_flags: -race
- os: windows-latest
goarch: amd64
go_test_race_flags: -race
runs-on: ${{ matrix.os }}
steps:
# only run cli binary tests on linux
2021-09-18 19:11:51 +03:00
- name: Install expect
if: ${{ matrix.os == 'ubuntu-latest' }}
2021-09-18 19:11:51 +03:00
run: sudo apt-get install expect
2020-06-08 03:29:51 +03:00
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.17.6
2020-06-08 03:29:51 +03:00
- name: Test
env:
GOARCH: ${{ matrix.goarch }}
GO_TEST_RACE_FLAGS: ${{ matrix.go_test_race_flags }}
2020-06-08 03:29:51 +03:00
run: make test