aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2025-07-19 17:05:05 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2025-07-19 17:05:05 -0400
commit2366a04d10310ad804c197ee7b2b24336f5b1d0b (patch)
treebe9c0ec1a8c0ceafaa11996580dc8e6ec4d68d75
parentAdd support for nested structs and additional types (diff)
downloadenvelope-2366a04d10310ad804c197ee7b2b24336f5b1d0b.zip
Add .build.yml
-rw-r--r--.build.yml10
-rw-r--r--.github/workflows/test.yml29
2 files changed, 10 insertions, 29 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..2a1b627
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,10 @@
+image: alpine/3.22
+packages:
+ - golang
+sources:
+ - git://git.sr.ht/~eugenetriguba/envelope
+tasks:
+ - test: |
+ cd envelope
+ go test -race -coverprofile=coverage.out -covermode=atomic ./...
+ go tool cover -func=coverage.out
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100644
index 9f18afa..0000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-name: Test
-
-on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
-
-jobs:
- run-tests:
- runs-on: ubuntu-22.04
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- - name: Set up Go
- uses: actions/setup-go@v5
- with:
- go-version: '1.23'
- - name: Runs tests with coverage
- run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@v4
- with:
- files: coverage.out
- token: ${{ secrets.CODECOV_TOKEN }}
- fail_ci_if_error: true
-