run all unit tests
This commit is contained in:
parent
274e32d331
commit
b776a3b209
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -299,34 +299,24 @@ jobs:
|
||||
|
||||
- run: mkdir testlog
|
||||
|
||||
# Install gotestfmt
|
||||
- name: Set up gotestfmt
|
||||
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
|
||||
|
||||
- name: one test
|
||||
run: |
|
||||
go test -v -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path \
|
||||
2>&1 | tee ./testlog/gotest-unit.log | grep -E '^(--- PASS:|--- FAIL:|ok|FAIL|PASS|cached)'
|
||||
|
||||
# run the tests
|
||||
# - name: Unit Tests
|
||||
# env:
|
||||
# # Set these to a bad value so we don't accidentally fall back to
|
||||
# # something elsewhere.
|
||||
# CORSO_M365_TEST_USER_ID: "foo"
|
||||
# CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
||||
# GOCACHE: ${{ github.workspace }}/go-cache
|
||||
# run: |
|
||||
# set -euo pipefail
|
||||
# go test \
|
||||
# -tags testing \
|
||||
# -json \
|
||||
# -v \
|
||||
# -failfast \
|
||||
# -p 1 \
|
||||
# -timeout 20m \
|
||||
# ./... \
|
||||
# 2>&1 | tee ./testlog/gotest-unit.log
|
||||
- name: Unit Tests
|
||||
env:
|
||||
# Set these to a bad value so we don't accidentally fall back to
|
||||
# something elsewhere.
|
||||
CORSO_M365_TEST_USER_ID: "foo"
|
||||
CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
||||
run: |
|
||||
set -euo pipefail
|
||||
go test \
|
||||
-tags testing \
|
||||
-json \
|
||||
-v \
|
||||
-failfast \
|
||||
-p 1 \
|
||||
-timeout 20m \
|
||||
./... \
|
||||
2>&1 | tee ./testlog/gotest-unit.log | grep -E '^(--- PASS:|--- FAIL:|ok|FAIL|PASS|cached)'
|
||||
|
||||
# Upload the original go test output as an artifact for later review.
|
||||
- name: Upload test log
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user