optimise yml
This commit is contained in:
parent
fcdaa08dc8
commit
646677ae0b
18
.github/workflows/cli.yml
vendored
18
.github/workflows/cli.yml
vendored
@ -33,19 +33,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Install Dependencies (Linux)
|
- name: Install Dependencies (Linux / MacOS)
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $GOPATH/bin
|
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"
|
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
|
|
||||||
|
|
||||||
- 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"
|
|
||||||
chmod +x $GOPATH/bin/gfmrun
|
chmod +x $GOPATH/bin/gfmrun
|
||||||
npm install markdown-toc
|
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"
|
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) (Linux/Mac)
|
- name: Run Tests (v1) (Linux / MacOS)
|
||||||
if: contains(github.base_ref, 'v1') && matrix.os != 'windows-latest'
|
if: contains(github.base_ref, 'v1') && matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
go run build.go vet
|
go run build.go vet
|
||||||
@ -71,7 +63,7 @@ jobs:
|
|||||||
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) (Linux/Mac)
|
- name: Run Tests (v2) (Linux / MacOS)
|
||||||
if: contains(github.base_ref, 'master') && matrix.os != 'windows-latest'
|
if: contains(github.base_ref, 'master') && matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
go run build.go vet
|
go run build.go vet
|
||||||
|
Loading…
Reference in New Issue
Block a user