iris/.github/workflows/ci.yml

38 lines
722 B
YAML
Raw Normal View History

2021-02-19 07:49:15 +01:00
name: CI
on:
push:
2021-02-19 07:50:12 +01:00
branches: [main,travis-to-github-actions]
2021-02-19 07:49:15 +01:00
pull_request:
2021-02-19 07:50:12 +01:00
branches: [main]
2021-02-19 07:49:15 +01:00
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
2021-02-19 07:50:12 +01:00
go_version: [1.15,1.16]
2021-02-19 07:49:15 +01:00
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
2021-02-19 08:41:24 +01:00
- name: Test
run: go test -v ./...
2021-02-19 07:49:15 +01:00
- name: Setup examples for testing
run: ./.github/scripts/setup_examples_test.bash
- name: Test examples
2021-02-19 08:41:24 +01:00
continue-on-error: true
2021-02-19 07:49:15 +01:00
working-directory: _examples
run: go test -v -mod=mod -cover -race ./...