Skip to content

Commit

Permalink
chore: Update CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
mathsnunes committed Dec 7, 2020
1 parent 625be9e commit 2e2c131
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ commands: # a reusable command with parameters
type: string

steps:
- run:
name: Setup gotestsum
command: curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v<<parameters.gotestsum_version>>/gotestsum_<<parameters.gotestsum_version>>_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum

- run:
name: Setup terraform
name: Setup
command: |
curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v<<parameters.gotestsum_version>>/gotestsum_<<parameters.gotestsum_version>>_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum
wget https://releases.hashicorp.com/terraform/<<parameters.terraform_version>>/terraform_<<parameters.terraform_version>>_linux_amd64.zip
unzip terraform_<<parameters.terraform_version>>_linux_amd64.zip
sudo mv terraform /usr/local/bin
Expand Down Expand Up @@ -50,7 +49,7 @@ jobs:
name: Run tests
command: |
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
$GOPATH/bin/gotestsum --format testname --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES
gotestsum --format testname --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES
- store_artifacts: # upload test summary for display in Artifacts
path: /tmp/test-results
Expand Down

0 comments on commit 2e2c131

Please sign in to comment.