-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor tests to Init schemas from environment variable
- Loading branch information
Jesse Schmidt
committed
Dec 6, 2023
1 parent
ac06c31
commit 644aab9
Showing
4 changed files
with
37 additions
and
7,517 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Unit Test | ||
name: Tests | ||
on: | ||
push: | ||
branches-ignore: | ||
|
@@ -21,18 +21,20 @@ jobs: | |
go-version: ${{ env.GO_VERSION }} | ||
- name: Install dependencies | ||
run: | | ||
echo "CWD=$(pwd)" >> $GITHUB_ENV | ||
go install github.com/golang/mock/[email protected] | ||
git clone https://github.com/aerospike/schemas.git | ||
- name: Generate Mocks | ||
run: | | ||
make mocks | ||
- name: Test with go | ||
env: | ||
TEST_SCHEMA_DIR: ${{ env.CWD }}/schemas/json/aerospike | ||
run: | | ||
make coverage | ||
# Uncomment the following lines when codecov secret is uploaded | ||
- name: Upload unit coverage to Codecov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
flags: unit | ||
files: coverage.cov | ||
verbose: false |
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
Oops, something went wrong.