-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aleksandr Nekrasov
committed
Feb 12, 2024
1 parent
ff4dcb1
commit 4114bd7
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
env: | ||
# Path to where test results will be saved. | ||
TEST_RESULTS: /tmp/test-results | ||
# Default version of Go to use by CI workflows. This should be the latest | ||
# release of Go; developers likely use the latest release in development and | ||
# we want to catch any bugs (e.g. lint errors, race detection) with this | ||
# release before they are merged. The Go compatibility guarantees ensure | ||
# backwards compatibility with the previous two minor releases and we | ||
# explicitly test our code for these versions so keeping this at prior | ||
# versions does not add value. | ||
DEFAULT_GO_VERSION: "1.21" | ||
|
||
jobs: | ||
test-coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Setup Environment | ||
run: | | ||
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.DEFAULT_GO_VERSION }} | ||
cache-dependency-path: "**/go.sum" | ||
- name: Run coverage tests | ||
run: | | ||
make test-coverage | ||
- name: Upload coverage reports to codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters