Skip to content

Commit 0eec6c9

Browse files
committed
chore: add GitHub actions
1 parent 2a7b4f7 commit 0eec6c9

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directory: /
5+
schedule:
6+
interval: daily
7+
8+
- package-ecosystem: gomod
9+
directory: /
10+
schedule:
11+
interval: daily
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: daily
17+

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
workflow_call:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6.0.2
15+
16+
- name: Setup Go
17+
uses: actions/setup-go@v6.3.0
18+
with:
19+
go-version: "1.26.x"
20+
21+
- name: Install Dependencies
22+
run: go get ./...
23+
24+
- name: Build
25+
run: go build ./...
26+
27+
- name: Run tests
28+
run: go test ./... -json > TestResults.json
29+
30+
- name: Upload test results
31+
uses: actions/upload-artifact@v7.0.0
32+
if: ${{ always() }}
33+
with:
34+
name: Go-results
35+
path: TestResults.json

0 commit comments

Comments
 (0)