From 2366a04d10310ad804c197ee7b2b24336f5b1d0b Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 19 Jul 2025 17:05:05 -0400 Subject: Add .build.yml --- .build.yml | 10 ++++++++++ .github/workflows/test.yml | 29 ----------------------------- 2 files changed, 10 insertions(+), 29 deletions(-) create mode 100644 .build.yml delete mode 100644 .github/workflows/test.yml 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 - -- cgit v1.2.3