-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web-app/ci: Add pipeline for quality checks
- We build, typecheck and lint. This makes sure everything still works at least according to on static checks - Scripts for building and typechecking were added to infra directories - Typechecking issues were fixed by modifying the tsconfig.json to ignore library typechecking, and also by fixing the type issues in our app files
- Loading branch information
1 parent
d27d7b8
commit d92a48b
Showing
4 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Web App Quality Check | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build-typecheck-lint: | ||
name: Build web app, typecheck and lint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
# We need foundry for contract types | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install node dependencies | ||
run: | | ||
cd web-app/infra | ||
npm ci | ||
- name: Build infra and src | ||
env: | ||
WEB_APP_INFRA_ENV: ${{ secrets.WEB_APP_INFRA_ENV }} | ||
run: | | ||
cd web-app/infra | ||
echo $WEB_APP_INFRA_ENV > .env | ||
npm run build | ||
- name: Lint | ||
run: | | ||
cd web-app/infra | ||
npm run lint | ||
cd ../src | ||
npm run lint | ||
- name: Typecheck | ||
run: | | ||
cd web-app/infra | ||
npm run typecheck | ||
cd ../src | ||
npm run typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters