fix no tests running

This commit is contained in:
Ajitem Sahasrabuddhe 2019-12-06 10:12:58 +05:30
parent 078d14335a
commit ccb0e89075
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

View File

@ -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