From ccb0e89075d4a61dbf2076339d735b58b571ebaa Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Fri, 6 Dec 2019 10:12:58 +0530 Subject: [PATCH] fix no tests running --- .github/workflows/cli.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index f0ce60e..0de033f 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -35,14 +35,22 @@ jobs: with: ref: ${{ github.ref }} - - name: Install Dependencies + - name: Install Dependencies (Linux) + if: matrix.os == 'ubuntu-latest' run: | mkdir -p $GOPATH/bin curl -s https://api.github.com/repos/urfave/gfmrun/releases/latest | grep gfmrun-linux-amd64 | grep download | cut -d '"' -f 4 | wget -O $GOPATH/bin/gfmrun -i - npm install markdown-toc + - name: Install Dependencies (Mac) + if: matrix.os == 'ubuntu-latest' + run: | + mkdir -p $GOPATH/bin + curl -s https://api.github.com/repos/urfave/gfmrun/releases/latest | grep gfmrun-darwin-amd64 | grep download | cut -d '"' -f 4 | wget -O $GOPATH/bin/gfmrun -i - + npm install markdown-toc + - name: Run Tests (v1) - if: contains(github.ref, 'v1') + if: contains(github.base_ref, 'v1') run: | go run build.go vet go run build.go test @@ -50,7 +58,7 @@ jobs: go run build.go toc docs/v1/manual.md - name: Run Tests (v2) - if: contains(github.ref, 'master') + if: contains(github.base_ref, 'master') run: | go run build.go vet go run build.go test