fix failing build

This commit is contained in:
Ajitem Sahasrabuddhe 2019-12-06 14:04:12 +05:30
parent 8dfefe854e
commit 8bc13046c4
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

View File

@ -57,16 +57,32 @@ jobs:
curl -L -o gfmrun.exe "https://github.com/urfave/gfmrun/releases/download/v1.2.14/gfmrun-windows-amd64-v1.2.14.exe" 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 npm install markdown-toc
- name: Run Tests (v1) - name: Run Tests (v1) (Linux/Mac)
if: contains(github.base_ref, 'v1') if: contains(github.base_ref, 'v1') && matrix.os != 'windows-latest'
run: | run: |
go run build.go vet go run build.go vet
go run build.go test go run build.go test
go run build.go gfmrun docs/v1/manual.md go run build.go gfmrun docs/v1/manual.md
go run build.go toc docs/v1/manual.md go run build.go toc docs/v1/manual.md
- name: Run Tests (v2) - name: Run Tests (v1) (Windows)
if: contains(github.base_ref, 'master') if: contains(github.base_ref, 'v1') && matrix.os == 'windows-latest'
run: |
go run build.go vet
go run build.go test
go run build.go gfmrun docs\v1\manual.md
go run build.go toc docs\v1\manual.md
- name: Run Tests (v2) (Linux/Mac)
if: contains(github.base_ref, 'master') && matrix.os != 'windows-latest'
run: |
go run build.go vet
go run build.go test
go run build.go gfmrun docs/v2/manual.md
go run build.go toc docs/v2/manual.md
- name: Run Tests (v2) (Windows)
if: contains(github.base_ref, 'master') && matrix.os == 'windows-latest'
run: | run: |
go run build.go vet go run build.go vet
go run build.go test go run build.go test