fuller
This commit is contained in:
parent
8caff5da01
commit
8a1d2ceeb9
81
.github/workflows/ci.yml
vendored
81
.github/workflows/ci.yml
vendored
@ -288,58 +288,41 @@ jobs:
|
|||||||
go-version-file: src/go.mod
|
go-version-file: src/go.mod
|
||||||
cache-key-suffix: unit-test
|
cache-key-suffix: unit-test
|
||||||
|
|
||||||
# - run: mkdir testlog
|
- run: mkdir -p /tmp/corso-testlog
|
||||||
|
|
||||||
- run: ls /home/runner/.cache/go-build
|
# Install gotestfmt
|
||||||
- run: ls /home/runner/.cache/go-build/*
|
- name: Set up gotestfmt
|
||||||
|
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
|
||||||
|
|
||||||
- run: env
|
# 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'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
export GODEBUG=gocachehash=1
|
||||||
|
go test \
|
||||||
|
-tags testing \
|
||||||
|
-json \
|
||||||
|
-v \
|
||||||
|
-failfast \
|
||||||
|
-p 1 \
|
||||||
|
-timeout 20m \
|
||||||
|
./... \
|
||||||
|
2>/tmp/corso-testlog/testcache-hash.log | tee /tmp/corso-testlog/gotest-unit.log
|
||||||
|
|
||||||
- name: one test
|
# Upload the original go test output as an artifact for later review.
|
||||||
run: GODEBUG=gocachetest=1 go test -v -run '^TestExportUnitSuite/TestGetItems$' ./internal/m365/service/onedrive
|
- name: Upload test log
|
||||||
|
if: always()
|
||||||
- name: one test again
|
uses: actions/upload-artifact@v4
|
||||||
run: GODEBUG=gocachetest=1 go test -v -run '^TestExportUnitSuite/TestGetItems$' ./internal/m365/service/onedrive
|
with:
|
||||||
|
name: unit-test-log
|
||||||
# - name: fail
|
path: /tmp/corso-testlog/*
|
||||||
# run: exit 1
|
if-no-files-found: error
|
||||||
|
retention-days: 14
|
||||||
# # Install gotestfmt
|
|
||||||
# - name: Set up gotestfmt
|
|
||||||
# run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
|
|
||||||
|
|
||||||
# # 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'
|
|
||||||
# run: |
|
|
||||||
# set -euo pipefail
|
|
||||||
# export GODEBUG=gocachehash=1
|
|
||||||
# go test \
|
|
||||||
# -tags testing \
|
|
||||||
# -json \
|
|
||||||
# -v \
|
|
||||||
# -failfast \
|
|
||||||
# -p 1 \
|
|
||||||
# -timeout 20m \
|
|
||||||
# ./... \
|
|
||||||
# 2>./testlog/testcache-hash.log | tee ./testlog/gotest-unit.log
|
|
||||||
|
|
||||||
# # Upload the original go test output as an artifact for later review.
|
|
||||||
# - name: Upload test log
|
|
||||||
# if: always()
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: unit-test-log
|
|
||||||
# path: src/testlog/*
|
|
||||||
# if-no-files-found: error
|
|
||||||
# retention-days: 14
|
|
||||||
|
|
||||||
# - name: fail
|
|
||||||
# run: exit 1
|
|
||||||
|
|
||||||
Test-Suite-Fork:
|
Test-Suite-Fork:
|
||||||
needs: [Precheck]
|
needs: [Precheck]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user