-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make: Skip expanding then passing the list of go packages. `./...` does this for us. - Use gotestfmt in CI/CD for better output. Still set same coverage flags as in make. - Increase explicit `-parallel` from program test in CI to 16. Tests are not bound on local resources but rather on waiting for external services.
- Loading branch information
1 parent
20b23aa
commit ba605ac
Showing
2 changed files
with
12 additions
and
5 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 |
---|---|---|
|
@@ -151,13 +151,13 @@ jobs: | |
OIDC_ARM_CLIENT_ID: ${{ inputs.oidc_arm_client_id }} | ||
run: | | ||
set -euo pipefail | ||
cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
cd examples && go test -v -json -cover -timeout 2h -tags=${{ matrix.language }} -parallel 16 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
- name: Run short tests | ||
if: inputs.short_test | ||
run: | | ||
set -euo pipefail | ||
cd examples && go test -v -json -count=1 -cover -timeout 15m -short -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
cd examples && go test -v -json -cover -timeout 15m -short -tags=${{ matrix.language }} -parallel 16 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
- name: Tar SDK folder | ||
if: ${{ matrix.language != 'go' }} | ||
|
@@ -207,6 +207,12 @@ jobs: | |
with: | ||
skip_dotnet_and_java: "true" | ||
|
||
- name: Install gotestfmt | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
tag: v2.4.0 | ||
repo: GoTestTools/gotestfmt | ||
|
||
- run: make ensure | ||
|
||
- name: Prerequisites artifact restore | ||
|
@@ -216,7 +222,9 @@ jobs: | |
run: make --touch codegen schema provider | ||
|
||
- name: Test Provider Library | ||
run: PROVIDER_TEST_TAGS=all make test_provider | ||
run: | | ||
set -euo pipefail | ||
cd provider && go test -v -json -coverprofile="coverage.txt" -coverpkg=./... -timeout 1h -parallel 16 ./... 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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