Skip to content

Commit

Permalink
Merge pull request #1079 from urfave/binary-size
Browse files Browse the repository at this point in the history
Add binary size bounds checking
  • Loading branch information
coilysiren committed Mar 2, 2020
2 parents 573004a + a8a1ef0 commit 1b7e4e0
Show file tree
Hide file tree
Showing 6 changed files with 326 additions and 188 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ jobs:
if: matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
run: test -z $(gofmt -l .)

- name: Run Tests
run: |
go run build.go vet
go run build.go test
- name: vet
run: go run internal/build/build.go vet

- name: test
run: go run internal/build/build.go test

- name: check-binary-size
run: go run internal/build/build.go check-binary-size

- name: Upload coverage to Codecov
if: success() && matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -91,11 +95,11 @@ jobs:
- name: Run Tests (v1)
if: contains(github.base_ref, 'v1')
run: |
go run build.go gfmrun docs/v1/manual.md
go run build.go toc docs/v1/manual.md
go run internal/build/build.go gfmrun docs/v1/manual.md
go run internal/build/build.go toc docs/v1/manual.md
- name: Run Tests (v2)
if: contains(github.base_ref, 'master')
run: |
go run build.go gfmrun docs/v2/manual.md
go run build.go toc docs/v2/manual.md
go run internal/build/build.go gfmrun docs/v2/manual.md
go run internal/build/build.go toc docs/v2/manual.md
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
node_modules/
vendor
.idea
internal/*/built-example
coverage.txt
180 changes: 0 additions & 180 deletions build.go

This file was deleted.

0 comments on commit 1b7e4e0

Please sign in to comment.