Skip to content

Commit 4d35c6c

Browse files
committed
Install go and configure in one step
1 parent 37386be commit 4d35c6c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.circleci/config.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,22 @@ jobs:
4343
- attach_workspace:
4444
at: script
4545
- run: go test -v ./...
46-
46+
4747
test-mac:
4848
macos:
4949
xcode: 12.5.1
5050
steps:
5151
- checkout
52-
- run: brew install go@1.17
5352
- run:
53+
name: install go
54+
command: |
55+
brew install go@1.17
56+
# Make Go available in the PATH upon first being installed
57+
echo 'export PATH="/usr/local/opt/go@1.17/bin:$PATH"' >> /Users/distiller/.bash_profile
58+
- run:
5459
name: run tests
5560
command: |
5661
mkdir -p /tmp/logs
57-
# Make Go available in the PATH upon first being installed
58-
echo 'export PATH="/usr/local/opt/go@1.17/bin:$PATH"' >> /Users/distiller/.bash_profile
5962
go test -v ./... --timeout 5m | tee /tmp/logs/test.log
6063
release:
6164
docker:

0 commit comments

Comments
 (0)