diff --git a/.circleci/config.yml b/.circleci/config.yml index 229bf3182..7e34184c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ orbs: executors: golang: docker: - - image: circleci/golang:1.14.2 + - image: circleci/golang:1.14.6 resource_class: 2xlarge ubuntu: docker: @@ -134,7 +134,7 @@ jobs: description: Test suite name to report to CircleCI. gotestsum-format: type: string - default: short + default: pkgname-and-test-fails description: gotestsum format. https://github.com/gotestyourself/gotestsum#format coverage: type: string @@ -160,18 +160,23 @@ jobs: - run: name: go test environment: - GOTESTSUM_JUNITFILE: /tmp/test-reports/<< parameters.test-suite-name >>/junit.xml - GOTESTSUM_FORMAT: << parameters.gotestsum-format >> LOTUS_TEST_WINDOW_POST: << parameters.winpost-test >> command: | mkdir -p /tmp/test-reports/<< parameters.test-suite-name >> - gotestsum -- \ + mkdir -p /tmp/test-artifacts + gotestsum \ + --format << parameters.gotestsum-format >> \ + --junitfile /tmp/test-reports/<< parameters.test-suite-name >>/junit.xml \ + --jsonfile /tmp/test-artifacts/<< parameters.test-suite-name >>.json \ + -- \ << parameters.coverage >> \ << parameters.go-test-flags >> \ << parameters.packages >> no_output_timeout: 30m - store_test_results: path: /tmp/test-reports + - store_artifacts: + path: /tmp/test-artifacts/<< parameters.test-suite-name >>.json - when: condition: << parameters.codecov-upload >> steps: @@ -320,11 +325,14 @@ workflows: - gofmt - test: codecov-upload: true + test-suite-name: full - test-window-post: go-test-flags: "-run=TestWindowedPost" winpost-test: "1" + test-suite-name: window-post - test-short: go-test-flags: "--timeout 10m --short" + test-suite-name: short filters: tags: only: