Skip to content

Commit

Permalink
fix go version check
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Feb 18, 2021
1 parent 9f543e1 commit cf90b44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: make no-filepath

- name: Make sure "check-go-version" works
if: matrix.os != 'windows-latest'
run: make check-go-version

- name: go fmt
if: matrix.os == 'macos-latest'
run: make fmt-go && git diff-index --quiet HEAD --
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test-all:
test-prepublish: check-go-version test-all test-preact-splitting test-sucrase bench-rome-esbuild test-esprima test-rollup

check-go-version:
@go version | grep 'go1\.16\.0' || (echo 'Please install Go version 1.16.0' && false)
@go version | grep ' go1\.16 ' || (echo 'Please install Go version 1.16.0' && false)

test-go:
go test ./internal/...
Expand Down

0 comments on commit cf90b44

Please sign in to comment.