Skip to content

Commit

Permalink
chore: remove temp lib download and fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 19, 2021
1 parent 8ebc234 commit 86753f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,21 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set Golang shared lib directory for GH Actions
run: |
# Temporarily download pact-go release libs
curl -L https://github.com/pact-foundation/pact-go/releases/download/2.0.0-alpha.1/libpact_linux.zip > /tmp/libpact.zip
unzip /tmp/libpact.zip -d /tmp/
echo "LD_LIBRARY_PATH=/tmp" >> $GITHUB_ENV
echo "PACT_GO_LIB_DOWNLOAD_PATH=/tmp" >> $GITHUB_ENV
echo "LOG_LEVEL=trace" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
# TODO: problem for another day
# - name: Run Snyk to check for vulnerabilities
# uses: snyk/actions/golang@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Test
run: make
- name: Set Golang shared lib directory for GH Actions
run: |
echo "LD_LIBRARY_PATH=/tmp" >> $GITHUB_ENV
echo "PACT_GO_LIB_DOWNLOAD_PATH=/tmp" >> $GITHUB_ENV
echo "LOG_LEVEL=trace" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
# TODO: problem for another day
# - name: Run Snyk to check for vulnerabilities
# uses: snyk/actions/golang@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Test
run: make
5 changes: 2 additions & 3 deletions command/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import (
"github.com/spf13/cobra"
)

var Version = "v2.0.0-beta.1"
var cliToolsVersion = "1.82.3"
var Version = "v2.0.0-beta.2"
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Pact Go",
Long: `All software has versions. This is Pact Go's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Pact Go CLI %s, using CLI tools version %s", Version, cliToolsVersion)
fmt.Printf("Pact Go CLI %s", Version)
},
}

Expand Down

0 comments on commit 86753f6

Please sign in to comment.