diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 5163246..9de4461 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -33,19 +33,11 @@ jobs: with: ref: ${{ github.ref }} - - name: Install Dependencies (Linux) - if: matrix.os == 'ubuntu-latest' + - name: Install Dependencies (Linux / MacOS) + if: matrix.os != 'windows-latest' run: | mkdir -p $GOPATH/bin - curl -L -o $GOPATH/bin/gfmrun "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-linux-amd64-v1.2.14" - chmod +x $GOPATH/bin/gfmrun - npm install markdown-toc - - - name: Install Dependencies (Mac) - if: matrix.os == 'macos-latest' - run: | - mkdir -p $GOPATH/bin - curl -L -o $GOPATH/bin/gfmrun "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-darwin-amd64-v1.2.14" + curl -L -o $GOPATH/bin/gfmrun "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-$(go env GOOS)-amd64-v1.2.14" chmod +x $GOPATH/bin/gfmrun npm install markdown-toc @@ -55,7 +47,7 @@ jobs: curl -L -o gfmrun.exe "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-windows-amd64-v1.2.14.exe" npm install markdown-toc - - name: Run Tests (v1) (Linux/Mac) + - name: Run Tests (v1) (Linux / MacOS) if: contains(github.base_ref, 'v1') && matrix.os != 'windows-latest' run: | go run build.go vet @@ -71,7 +63,7 @@ jobs: go run build.go gfmrun docs\v1\manual.md go run build.go toc docs\v1\manual.md - - name: Run Tests (v2) (Linux/Mac) + - name: Run Tests (v2) (Linux / MacOS) if: contains(github.base_ref, 'master') && matrix.os != 'windows-latest' run: | go run build.go vet