1 # Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
5 working_directory: ~/repo
7 - image: cimg/go:1.22.1
12 # - go-mod-v4-{{ checksum "go.sum" }}
14 name: Install Dependencies
15 command: go mod download
17 # key: go-mod-v4-{{ checksum "go.sum" }}
23 mkdir -p /tmp/test-reports
24 gotestsum --junitfile /tmp/test-reports/unit-tests.xml
26 path: /tmp/test-reports
30 - image: cimg/go:1.22.1
31 # working_directory: /go/src/github.com/jhalter/mobius
34 - run: go get -u github.com/mitchellh/gox
35 - run: go install github.com/tcnksm/ghr@latest
36 - run: go install github.com/stevenmatthewt/semantics@latest
45 tag=$(/home/circleci/go/bin/semantics --output-tag)
47 /home/circleci/go/bin/ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
49 echo "The commit message(s) did not indicate a major/minor/patch version."