summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-03-27 16:40:35 +0100
committerSanto Cariotti <santo@dcariotti.me>2025-03-27 16:40:35 +0100
commitc2dd1f5e20a4054cb4194145293af4f3409759dc (patch)
tree4502611f1c55698d895960247434312f53524b01 /.github
Init relay
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..9a479fc
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: Go CI
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Go
+ uses: actions/setup-go@v4
+ with:
+ go-version: '1.23'
+
+ - name: Test
+ run: go test ./... -v -race -coverprofile=coverage.txt
+
+ - name: Upload coverage reports to Codecov
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}