Skip to content

Commit

Permalink
Fix up pr yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eatonphil committed Jul 31, 2022
1 parent 608e9f4 commit 9275a94
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches: [main]

jobs:
test:
validate:
name: 'Code is clean'
runs-on: ubuntu-latest

if: github.event_name == 'pull_request'
Expand All @@ -14,18 +15,15 @@ jobs:
with:
ref: ${{ github.ref }}

- run: ./scripts/ci/prepare_linux.sh
- run: go test -race -cover
- uses: actions/setup-go@v3
with:
check-latest: true
- run: yarn
- run: yarn fmt
- run: ./scripts/fail_on_diff.sh
# Test examples
- run: go run main.go
working-directory: ./examples/connecthook
- run: go run main.go
working-directory: ./examples/basic

tests:
name: 'Run tests'
runs-on:
- ubuntu-latest
- windows-latest
Expand All @@ -41,3 +39,8 @@ jobs:
check-latest: true
- run: go build
- run: go test -race -cover
# Test examples
- run: go run main.go
working-directory: ./examples/connecthook
- run: go run main.go
working-directory: ./examples/basic

0 comments on commit 9275a94

Please sign in to comment.