Skip to content

Commit 9275a94

Browse files
committed
Fix up pr yaml
1 parent 608e9f4 commit 9275a94

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/pull_requests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches: [main]
66

77
jobs:
8-
test:
8+
validate:
9+
name: 'Code is clean'
910
runs-on: ubuntu-latest
1011

1112
if: github.event_name == 'pull_request'
@@ -14,18 +15,15 @@ jobs:
1415
with:
1516
ref: ${{ github.ref }}
1617

17-
- run: ./scripts/ci/prepare_linux.sh
18-
- run: go test -race -cover
18+
- uses: actions/setup-go@v3
19+
with:
20+
check-latest: true
1921
- run: yarn
2022
- run: yarn fmt
2123
- run: ./scripts/fail_on_diff.sh
22-
# Test examples
23-
- run: go run main.go
24-
working-directory: ./examples/connecthook
25-
- run: go run main.go
26-
working-directory: ./examples/basic
2724

2825
tests:
26+
name: 'Run tests'
2927
runs-on:
3028
- ubuntu-latest
3129
- windows-latest
@@ -41,3 +39,8 @@ jobs:
4139
check-latest: true
4240
- run: go build
4341
- run: go test -race -cover
42+
# Test examples
43+
- run: go run main.go
44+
working-directory: ./examples/connecthook
45+
- run: go run main.go
46+
working-directory: ./examples/basic

0 commit comments

Comments
 (0)