From 2a9a470a80a0b9fb4efd2ca29b0b15ebc4081ea5 Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Sun, 22 Oct 2023 07:16:55 -0700 Subject: [PATCH] Test commit Signed-off-by: Denton Gentry --- .github/workflows/coverage.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..7efb0368a --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,30 @@ +name: Code Coverage + +on: + push: + branches: + - main + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + + if: "!contains(github.event.head_commit.message, '[ci skip]')" + + steps: + + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + + - name: build all + run: ./tool/go install ./cmd/... + + - name: Run tests on linux with coverage data + run: ./tool/go test -race -covermode atomic -coverprofile=covprofile ./...