Skip to content

Commit cdc2d35

Browse files
ci: add GitHub workflows and dependabot config (#2)
1 parent 337ed4e commit cdc2d35

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
gomod-minor-patch:
9+
patterns:
10+
- "*"
11+
update-types:
12+
- "minor"
13+
- "patch"
14+
gomod-major:
15+
patterns:
16+
- "*"
17+
update-types:
18+
- "major"
19+
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
groups:
25+
actions:
26+
patterns:
27+
- "*"

.github/workflows/coverage.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: coverage
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
coverage:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/setup-go@v6
13+
with:
14+
go-version: "1.25"
15+
- uses: actions/checkout@v6
16+
- run: go test -coverprofile=speed-proxy.cov -coverpkg=./... ./...
17+
- uses: shogo82148/actions-goveralls@v1
18+
with:
19+
path-to-profile: speed-proxy.cov
20+
parallel: true
21+
finish:
22+
needs: coverage
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: shogo82148/actions-goveralls@v1
26+
with:
27+
parallel-finished: true

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "main"
7+
jobs:
8+
build_and_run_tests:
9+
runs-on: "${{ matrix.os }}"
10+
strategy:
11+
matrix:
12+
go: ["1.25"]
13+
os: ["ubuntu-24.04"]
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-go@v6
17+
with:
18+
go-version: "${{ matrix.go }}"
19+
cache: true
20+
- run: go build -v ./...
21+
- run: go test -race -v ./...

0 commit comments

Comments
 (0)