11name : checks
22
33on :
4- # Triggers the workflow on push or pull request events but only for the master branch
4+ # Triggers the workflow on push or pull request events but only for the main branch
55 push :
6- branches : [master , develop]
6+ branches : [main , develop]
77 pull_request :
8- branches : [master , develop]
8+ branches : [main , develop]
99 paths :
10- - ' src/**'
11- - ' *.json'
12- - ' *.js'
13- - ' .prettierignore'
14- - ' yarn.lock'
1510 - ' .github/workflows/frontend.yml'
16- - ' src-wasm/**'
11+ - ' frontend/src/**'
12+ - ' frontend/*.json'
13+ - ' frontend/*.js'
14+ - ' frontend/.prettierignore'
15+ - ' frontend/yarn.lock'
16+ - ' frontend/src-wasm/**'
1717
1818jobs :
1919 frontend :
@@ -30,27 +30,20 @@ jobs:
3030 run : rustup default stable
3131
3232 - name : Install Dependencies
33- run : yarn install --frozen-lockfile
33+ run : cd frontend && yarn install --frozen-lockfile
3434
3535 - name : Check Formatting
36- run : yarn prettier -c src
36+ run : cd frontend && yarn prettier -c src
3737
3838 - name : Eslint
39- run : yarn lint
39+ run : cd frontend && yarn lint
4040
41- - name : codespell
42- uses : codespell-project/actions-codespell@master
43- with :
44- check_filenames : true
45- check_hidden : true
46- skip : ./.git,./.gitignore,node_modules,dist,yarn.lock,./src/assets,./translations,*.html,./src-tauri
47- ignore_words_list : crate,ser
41+ - name : Build Tauri Frontend
42+ run : cd frontend && yarn ng build --configuration production
4843
4944 - name : Build WASM binary
50- run : yarn wasm_lib:release
51-
52- - name : Build Tauri Frontend
53- run : yarn ng build --configuration production
45+ # debug compiles faster and everything gets checked in the dedicated wasm ci pipeline
46+ run : cd frontend && yarn wasm_lib:debug
5447
5548 - name : Build Web Frontend
56- run : yarn ng build --configuration webProd
49+ run : cd frontend && yarn ng build --configuration webProd
0 commit comments