diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-28 14:02:55 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-28 14:02:55 -0500 |
| commit | 6664c504f07c7a55bdafb399f62ec034977d324d (patch) | |
| tree | fe5844c9fcdf65ed2140d5ab1dd0e3cd5d7969d4 | |
| parent | Add note to readme about other options (diff) | |
| download | checkmate-6664c504f07c7a55bdafb399f62ec034977d324d.zip | |
Add test workflow
| -rw-r--r-- | .github/workflows/test.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..39e2d43 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +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@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.21' + - name: Runs tests with coverage + run: go test -race -coverprofile=coverage.out -covermode=atomic + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 |