Skip to content

Commit

Permalink
Replace a few more custom make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Sep 11, 2022
1 parent 1a851c7 commit 7d9264a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/cli.yml
Expand Up @@ -30,11 +30,15 @@ jobs:
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
run: make lint
- run: make vet
- run: make tag-test
- run: make test
env:
FLAGS: -tags urfave_cli_no_docs
- run: make test
- run: make -C cmd/urfave-cli-genflags
- 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 diffcheck
- if: matrix.go == '1.19.x' && matrix.os == 'ubuntu-latest'
Expand All @@ -59,6 +63,8 @@ jobs:
- uses: actions/checkout@v3
- run: make ensure-gfmrun
- run: make gfmrun
env:
FLAGS: --walk docs/v2/
- run: make diffcheck
publish:
permissions:
Expand All @@ -71,7 +77,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: make ci-ensure-mkdocs
- run: make ensure-mkdocs
env:
FLAGS: --upgrade-pip
- run: make set-mkdocs-remote
env:
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
16 changes: 0 additions & 16 deletions Makefile
Expand Up @@ -17,22 +17,6 @@ all: generate vet tag-test test check-binary-size tag-check-binary-size gfmrun y
%:
$(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
docs:
mkdocs build
Expand Down

0 comments on commit 7d9264a

Please sign in to comment.