Skip to content

Commit

Permalink
Add e2e tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Apr 4, 2023
1 parent 7c85115 commit 1965b08
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
go-version: ${{ matrix.go }}

- name: Build
run: go get -v .
run: go get -v ./...

- name: Run tests
run: go test
run: go test ./...

examples:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,9 +69,22 @@ jobs:
with:
go-version: 1.x

- name: Check formatting
- name: Check root
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: .
gofmt-flags: '-s -l'

- name: Check e2e
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: e2e
gofmt-flags: '-s -l'

- name: Check examples
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: _examples
gofmt-flags: '-s -l'

linters:
Expand All @@ -91,6 +104,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
Expand Down

0 comments on commit 1965b08

Please sign in to comment.