From 06cdc2013177ee33cf0046b481b467269de3c883 Mon Sep 17 00:00:00 2001 From: agentmilindu Date: Sat, 24 Aug 2019 18:42:28 +0530 Subject: [PATCH] Different steps for different OS --- .github/workflows/main.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20eb7c0..5a8ed46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,9 +11,22 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Build Dunner and run tests + + - name: Build Dunner and run tests on linux + if: matrix.os == 'ubuntu-latest' + run: | + mkdir -p ~/go/bin + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + ~/go/bin/dep ensure + go install + dunner version + dunner do show + + - name: Build Dunner and run tests on Mac + if: matrix.os == 'macOS-latest' run: | - go install github.com/golang/dep/cmd/dep + brew install dep + brew upgrade dep dep ensure go install dunner version