Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Nov 15, 2022
1 parent e2864b5 commit acaa981
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ jobs:

strategy:
matrix:
include:
- go: 1.14
examples: no
- go: 1.x
examples: yes
go: [1.14, 1.x]

name: Go ${{ matrix.go }}
steps:
Expand All @@ -41,12 +37,23 @@ jobs:
- name: Run tests
run: go test

examples:
runs-on: ubuntu-latest

name: Examples
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.x

- name: Build examples
if: matrix.examples == 'yes'
run: cd _examples && go get -v .

- name: Run examples tests
if: matrix.examples == 'yes'
run: cd _examples && go test

linters:
Expand Down

0 comments on commit acaa981

Please sign in to comment.