diff options
| -rw-r--r-- | .build.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 29 |
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 - |