diff options
author | Ayke van Laethem <[email protected]> | 2022-06-18 20:03:07 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-06-19 13:00:44 +0200 |
commit | 64d7f1e436ddc155100b030bcdcefd8354c07b09 (patch) | |
tree | 311adb89f4d8dbc39f508758a523c004f63cbc26 /.circleci | |
parent | 9af535bf98a7cd01db85468c427020969a9b68d1 (diff) | |
download | tinygo-64d7f1e436ddc155100b030bcdcefd8354c07b09.tar.gz tinygo-64d7f1e436ddc155100b030bcdcefd8354c07b09.zip |
all: run gofmt on all source code
Some source code wasn't part of `FMT_PATHS` so wasn't checked for
correct formatting. This change includes all this source code and
excludes cgo/testdata because it contains files that can't be parsed.
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index fbdc52c04..3114194fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -95,6 +95,14 @@ commands: key: wasi-libc-sysroot-systemclang-v6 paths: - lib/wasi-libc/sysroot + - when: + condition: <<parameters.fmt-check>> + steps: + - run: + # Do this before gen-device so that it doesn't check the + # formatting of generated files. + name: Check Go code formatting + command: make fmt-check - run: make gen-device -j4 - run: make smoketest XTENSA=0 - save_cache: @@ -102,12 +110,6 @@ commands: paths: - ~/.cache/go-build - /go/pkg/mod - - when: - condition: <<parameters.fmt-check>> - steps: - - run: - name: Check Go code formatting - command: make fmt-check jobs: test-llvm13-go116: |