Replace a few more custom make targets
This commit is contained in:
parent
1a851c7ac9
commit
7d9264aea1
14
.github/workflows/cli.yml
vendored
14
.github/workflows/cli.yml
vendored
@ -30,11 +30,15 @@ jobs:
|
|||||||
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
|
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
|
||||||
run: make lint
|
run: make lint
|
||||||
- run: make vet
|
- run: make vet
|
||||||
- run: make tag-test
|
- run: make test
|
||||||
|
env:
|
||||||
|
FLAGS: -tags urfave_cli_no_docs
|
||||||
- run: make test
|
- run: make test
|
||||||
- run: make -C cmd/urfave-cli-genflags
|
- run: make -C cmd/urfave-cli-genflags
|
||||||
- run: make check-binary-size
|
- run: make check-binary-size
|
||||||
- run: make tag-check-binary-size
|
env:
|
||||||
|
FLAGS: -tags urfave_cli_no_docs
|
||||||
|
- run: make check-binary-size
|
||||||
- run: make yamlfmt
|
- run: make yamlfmt
|
||||||
- run: make diffcheck
|
- run: make diffcheck
|
||||||
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
|
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
|
||||||
@ -59,6 +63,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: make ensure-gfmrun
|
- run: make ensure-gfmrun
|
||||||
- run: make gfmrun
|
- run: make gfmrun
|
||||||
|
env:
|
||||||
|
FLAGS: --walk docs/v2/
|
||||||
- run: make diffcheck
|
- run: make diffcheck
|
||||||
publish:
|
publish:
|
||||||
permissions:
|
permissions:
|
||||||
@ -71,7 +77,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: make ci-ensure-mkdocs
|
- run: make ensure-mkdocs
|
||||||
|
env:
|
||||||
|
FLAGS: --upgrade-pip
|
||||||
- run: make set-mkdocs-remote
|
- run: make set-mkdocs-remote
|
||||||
env:
|
env:
|
||||||
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
16
Makefile
16
Makefile
@ -17,22 +17,6 @@ all: generate vet tag-test test check-binary-size tag-check-binary-size gfmrun y
|
|||||||
%:
|
%:
|
||||||
$(GO_RUN_BUILD) $(GFLAGS) $* $(FLAGS)
|
$(GO_RUN_BUILD) $(GFLAGS) $* $(FLAGS)
|
||||||
|
|
||||||
.PHONY: tag-test
|
|
||||||
tag-test:
|
|
||||||
$(GO_RUN_BUILD) -tags urfave_cli_no_docs test
|
|
||||||
|
|
||||||
.PHONY: tag-check-binary-size
|
|
||||||
tag-check-binary-size:
|
|
||||||
$(GO_RUN_BUILD) -tags urfave_cli_no_docs check-binary-size
|
|
||||||
|
|
||||||
.PHONY: gfmrun
|
|
||||||
gfmrun:
|
|
||||||
$(GO_RUN_BUILD) gfmrun --walk docs/v2/
|
|
||||||
|
|
||||||
.PHONY: ci-ensure-mkdocs
|
|
||||||
ci-ensure-mkdocs:
|
|
||||||
$(GO_RUN_BUILD) ensure-mkdocs --upgrade-pip
|
|
||||||
|
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
docs:
|
docs:
|
||||||
mkdocs build
|
mkdocs build
|
||||||
|
Loading…
Reference in New Issue
Block a user