Skip to content

Commit cba4475

Browse files
committed
make sure the CI checks that the project files are *always* formatted
1 parent 66128f7 commit cba4475

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: CI
33
on:
44
workflow_dispatch:
55
push:
6-
paths-ignore: ['**/*.md', '^\.*', 'LICENSE']
6+
paths-ignore: ["**/*.md", '^\.*', "LICENSE"]
77
pull_request:
8-
paths-ignore: ['**/*.md', '^\.*', 'LICENSE']
8+
paths-ignore: ["**/*.md", '^\.*', "LICENSE"]
99

1010
jobs:
1111
build:
@@ -37,6 +37,8 @@ jobs:
3737
run: |
3838
mv c2v ~/.vmodules/c2v
3939
v -g ~/.vmodules/c2v/ || true
40+
- name: The project files should be always formatted
41+
run: v fmt -verify ~/.vmodules/c2v/
4042
- name: Test C2V
4143
run: v -g test ~/.vmodules/c2v/
4244
- name: Build original Chocolate Doom
@@ -51,12 +53,12 @@ jobs:
5153
v -g run tools/build_doom_file.vsh doom/p_enemy
5254
- name: Translate the whole game in project/folder mode
5355
run: |
54-
touch ~/DOOM1.WAD
55-
if [ "${{ runner.os }}" == "Linux" ]; then
56-
WAD_FILE=~/DOOM1.WAD ~/code/doom/build_whole_project.sh
57-
else
58-
echo "TODO: ... building doom should be fixed on macos, after it regressed in eafdd3c"
59-
fi
56+
touch ~/DOOM1.WAD
57+
if [ "${{ runner.os }}" == "Linux" ]; then
58+
WAD_FILE=~/DOOM1.WAD ~/code/doom/build_whole_project.sh
59+
else
60+
echo "TODO: ... building doom should be fixed on macos, after it regressed in eafdd3c"
61+
fi
6062
6163
test-regressions:
6264
runs-on: ubuntu-latest
@@ -102,6 +104,8 @@ jobs:
102104
run: |
103105
mv c2v ~/.vmodules/c2v
104106
v -g ~/.vmodules/c2v/ || true
107+
- name: The project files should be always formatted
108+
run: v fmt -verify ~/.vmodules/c2v/
105109
- name: Test C2V
106110
run: v -g test ~/.vmodules/c2v/
107111
- name: Build original Chocolate Doom

0 commit comments

Comments
 (0)