Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Apr 4, 2023
1 parent fc33861 commit 907b2e9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
with:
go-version: 1.x

- name: Build examples
- name: Build
run: cd _examples && go get -v .

- name: Run examples tests
- name: Run tests
run: cd _examples && go test

formatting:
Expand Down Expand Up @@ -90,7 +90,15 @@ jobs:
linters:
runs-on: ubuntu-latest

name: Linters
strategy:
matrix:
include:
- name: root
dir: .
- name: examples
dir: _examples

name: Linters for ${{ matrix.name }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -104,13 +112,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: ./...

- name: Run linters for examples
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
working-directory: _examples
working-directory: ${{ matrix.dir }}

coverage:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 907b2e9

Please sign in to comment.