From 14d8a97fe6afc1eedfc7496345a72f048d17fb56 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 18 May 2024 15:10:29 +0300 Subject: [PATCH] ci: make sure that unformatted code in just cmd/ is not allowed --- .github/workflows/tools_ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tools_ci.yml b/.github/workflows/tools_ci.yml index f07d454b75..24fe0aaca1 100644 --- a/.github/workflows/tools_ci.yml +++ b/.github/workflows/tools_ci.yml @@ -35,6 +35,8 @@ jobs: - uses: actions/checkout@v4 - name: Build V run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor + - name: Code in cmd/ is formatted + run: ./v fmt -verify cmd/ - name: Test run: ./v test-self cmd - name: Test (-cstrict)