Skip to content

Commit fb646dc

Browse files
committed
split ci jobs
1 parent 3614b0e commit fb646dc

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,31 @@ on:
1111

1212
jobs:
1313

14-
build:
14+
run-examples:
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: '1.24'
22+
23+
- name: Examples
24+
run: |
25+
set -e # Exit on any error
26+
27+
for file in examples/*.go; do
28+
if [[ "$file" == "examples/setup.go" ]]; then
29+
continue
30+
fi
31+
32+
echo "Running $file"
33+
go run "$file" examples/setup.go
34+
echo "----------------------"
35+
echo
36+
done
37+
38+
test:
1539
runs-on: ubuntu-latest
1640

1741
services:
@@ -37,9 +61,6 @@ jobs:
3761
with:
3862
go-version: '1.24'
3963

40-
- name: Build
41-
run: go build ./...
42-
4364
- name: Test
4465
run: |
4566
until pg_isready -h 127.0.0.1 -p 5432 -U user; do
@@ -48,18 +69,3 @@ jobs:
4869
done
4970
5071
GOEXPERIMENT=synctest GODEBUG=asynctimerchan=0 go test -v ./...
51-
52-
- name: Examples
53-
run: |
54-
set -e # Exit on any error
55-
56-
for file in examples/*.go; do
57-
if [[ "$file" == "examples/setup.go" ]]; then
58-
continue
59-
fi
60-
61-
echo "Running $file"
62-
go run "$file" examples/setup.go
63-
echo "----------------------"
64-
echo
65-
done

0 commit comments

Comments
 (0)