mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: add an early step 'All code is formatted' to more workflows.
This commit is contained in:
parent
3fc4459485
commit
da42f0d42b
2
.github/workflows/alpine.test.sh
vendored
2
.github/workflows/alpine.test.sh
vendored
@ -15,6 +15,8 @@ ls -lat
|
|||||||
## try running the known failing tests first to get faster feedback
|
## 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 vlib/builtin/string_test.v vlib/strings/builder_test.v
|
||||||
|
|
||||||
|
./v test-cleancode
|
||||||
|
|
||||||
./v test-self
|
./v test-self
|
||||||
|
|
||||||
./v build-vbinaries
|
./v build-vbinaries
|
||||||
|
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -55,6 +55,8 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
# - name: Self tests (-cstrict)
|
# - name: Self tests (-cstrict)
|
||||||
@ -126,6 +128,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./v -gc boehm cmd/tools/test_if_v_test_system_works.v
|
./v -gc boehm cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./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
|
- name: Self tests with `-gc boehm` with V compiler using Boehm-GC itself
|
||||||
run: ./v -gc boehm test-self
|
run: ./v -gc boehm test-self
|
||||||
- name: Test leak detector
|
- name: Test leak detector
|
||||||
@ -189,6 +193,8 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: VJOBS=1 ./v test-self
|
run: VJOBS=1 ./v test-self
|
||||||
- name: Build examples
|
- name: Build examples
|
||||||
@ -281,6 +287,8 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
- name: Self tests (-prod)
|
- name: Self tests (-prod)
|
||||||
@ -373,6 +381,8 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
- name: Self tests (-prod)
|
- name: Self tests (-prod)
|
||||||
@ -443,6 +453,8 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: .\v.exe test-self
|
run: .\v.exe test-self
|
||||||
# - name: Test
|
# - name: Test
|
||||||
@ -501,6 +513,9 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./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
|
- name: Self tests
|
||||||
run: |
|
run: |
|
||||||
./v -cg cmd\tools\vtest-self.v
|
./v -cg cmd\tools\vtest-self.v
|
||||||
@ -556,8 +571,8 @@ jobs:
|
|||||||
run: ./v doc -v clipboard
|
run: ./v doc -v clipboard
|
||||||
- name: Test v build-tools
|
- name: Test v build-tools
|
||||||
run: ./v -W build-tools
|
run: ./v -W build-tools
|
||||||
- name: Test ./v doc clipboard
|
- name: All code is formatted
|
||||||
run: ./v doc clipboard
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
- name: Test v->js
|
- name: Test v->js
|
||||||
|
7
.github/workflows/containers_ci.yml
vendored
7
.github/workflows/containers_ci.yml
vendored
@ -42,6 +42,9 @@ jobs:
|
|||||||
- name: Build V
|
- name: Build V
|
||||||
run: CC=gcc make
|
run: CC=gcc make
|
||||||
|
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
|
|
||||||
- name: Test V fixed tests
|
- name: Test V fixed tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
|
|
||||||
@ -69,5 +72,9 @@ jobs:
|
|||||||
echo $VFLAGS
|
echo $VFLAGS
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
|
|
||||||
- name: Test V fixed tests
|
- name: Test V fixed tests
|
||||||
run: ./v test-self
|
run: ./v test-self
|
||||||
|
5
.github/workflows/debug_ci.yml
vendored
5
.github/workflows/debug_ci.yml
vendored
@ -25,12 +25,13 @@ jobs:
|
|||||||
.\v.exe setup-freetype
|
.\v.exe setup-freetype
|
||||||
.\.github\workflows\windows-install-sqlite.bat
|
.\.github\workflows\windows-install-sqlite.bat
|
||||||
- name: v doctor
|
- name: v doctor
|
||||||
run: |
|
run: ./v doctor
|
||||||
./v doctor
|
|
||||||
- name: Verify `v test` works
|
- name: Verify `v test` works
|
||||||
run: |
|
run: |
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
./cmd/tools/test_if_v_test_system_works
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
- name: Self tests
|
- name: Self tests
|
||||||
run: |
|
run: |
|
||||||
./v -cg cmd\tools\vtest-self.v
|
./v -cg cmd\tools\vtest-self.v
|
||||||
|
Loading…
Reference in New Issue
Block a user