ci: add an early step 'All code is formatted' to more workflows.
							parent
							
								
									3fc4459485
								
							
						
					
					
						commit
						da42f0d42b
					
				|  | @ -15,6 +15,8 @@ ls -lat | |||
| ## try running the known failing tests first to get faster feedback | ||||
| ./v test vlib/builtin/string_test.v vlib/strings/builder_test.v | ||||
| 
 | ||||
| ./v test-cleancode | ||||
| 
 | ||||
| ./v test-self | ||||
| 
 | ||||
| ./v build-vbinaries | ||||
|  |  | |||
|  | @ -55,6 +55,8 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: ./v test-self | ||||
|       # - name: Self tests (-cstrict) | ||||
|  | @ -126,6 +128,8 @@ jobs: | |||
|         run: | | ||||
|           ./v -gc boehm cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests with `-gc boehm` with V compiler using Boehm-GC itself | ||||
|         run: ./v -gc boehm test-self | ||||
|       - name: Test leak detector | ||||
|  | @ -189,6 +193,8 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: VJOBS=1 ./v test-self | ||||
|       - name: Build examples | ||||
|  | @ -281,6 +287,8 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: ./v test-self | ||||
|       - name: Self tests (-prod) | ||||
|  | @ -373,6 +381,8 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: ./v test-self | ||||
|       - name: Self tests (-prod) | ||||
|  | @ -443,6 +453,8 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: .\v.exe test-self | ||||
|         #    - name: Test | ||||
|  | @ -501,6 +513,9 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
| ### TODO: test-cleancode fails with msvc. Investigate why??? | ||||
| ##      - name: All code is formatted | ||||
| ##        run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: | | ||||
|           ./v -cg cmd\tools\vtest-self.v | ||||
|  | @ -556,8 +571,8 @@ jobs: | |||
|         run: ./v doc -v clipboard | ||||
|       - name: Test v build-tools | ||||
|         run: ./v -W build-tools | ||||
|       - name: Test ./v doc clipboard | ||||
|         run: ./v doc clipboard | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: ./v test-self | ||||
|       - name: Test v->js | ||||
|  |  | |||
|  | @ -42,6 +42,9 @@ jobs: | |||
|       - name: Build V | ||||
|         run: CC=gcc make | ||||
| 
 | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
| 
 | ||||
|       - name: Test V fixed tests | ||||
|         run: ./v test-self | ||||
| 
 | ||||
|  | @ -69,5 +72,9 @@ jobs: | |||
|           echo $VFLAGS | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
| 
 | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
| 
 | ||||
|       - name: Test V fixed tests | ||||
|         run: ./v test-self | ||||
|  |  | |||
|  | @ -25,12 +25,13 @@ jobs: | |||
|           .\v.exe setup-freetype | ||||
|           .\.github\workflows\windows-install-sqlite.bat | ||||
|       - name: v doctor | ||||
|         run: | | ||||
|           ./v doctor | ||||
|         run: ./v doctor | ||||
|       - name: Verify `v test` works | ||||
|         run: | | ||||
|           ./v cmd/tools/test_if_v_test_system_works.v | ||||
|           ./cmd/tools/test_if_v_test_system_works | ||||
|       - name: All code is formatted | ||||
|         run: ./v test-cleancode | ||||
|       - name: Self tests | ||||
|         run: | | ||||
|           ./v -cg cmd\tools\vtest-self.v | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue