runs only on test for convinience
This commit is contained in:
parent
2ef01e38bd
commit
4de11255c8
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
@ -303,25 +303,27 @@ jobs:
|
|||||||
- name: Set up gotestfmt
|
- name: Set up gotestfmt
|
||||||
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
|
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
|
||||||
|
|
||||||
|
- name: one test
|
||||||
|
run: go test -v -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path
|
||||||
# run the tests
|
# run the tests
|
||||||
- name: Unit Tests
|
# - name: Unit Tests
|
||||||
env:
|
# env:
|
||||||
# Set these to a bad value so we don't accidentally fall back to
|
# # Set these to a bad value so we don't accidentally fall back to
|
||||||
# something elsewhere.
|
# # something elsewhere.
|
||||||
CORSO_M365_TEST_USER_ID: "foo"
|
# CORSO_M365_TEST_USER_ID: "foo"
|
||||||
CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
# CORSO_SECONDARY_M365_TEST_USER_ID: "foo"
|
||||||
GOCACHE: ${{ github.workspace }}/go-cache
|
# GOCACHE: ${{ github.workspace }}/go-cache
|
||||||
run: |
|
# run: |
|
||||||
set -euo pipefail
|
# set -euo pipefail
|
||||||
go test \
|
# go test \
|
||||||
-tags testing \
|
# -tags testing \
|
||||||
-json \
|
# -json \
|
||||||
-v \
|
# -v \
|
||||||
-failfast \
|
# -failfast \
|
||||||
-p 1 \
|
# -p 1 \
|
||||||
-timeout 20m \
|
# -timeout 20m \
|
||||||
./... \
|
# ./... \
|
||||||
2>&1 | tee ./testlog/gotest-unit.log
|
# 2>&1 | tee ./testlog/gotest-unit.log
|
||||||
|
|
||||||
# Upload the original go test output as an artifact for later review.
|
# Upload the original go test output as an artifact for later review.
|
||||||
- name: Upload test log
|
- name: Upload test log
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user