Skip to content

Commit

Permalink
Update CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 24, 2024
1 parent ff467ff commit 4657a65
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Backend CI

on:
push:
branches: [ demo ]
branches: [ main ]
pull_request:
branches: [ demo ]
branches: [ main ]

jobs:
build:
Expand All @@ -32,4 +32,5 @@ jobs:
cache: 'npm'
cache-dependency-path: './backend/package-lock.json'
- run: npm install
- run: npm run lint
- run: npm run build
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: build

on:
push:
branches: [ demo ]
branches: [ main ]
pull_request:
branches: [ demo ]
branches: [ main ]

jobs:
build:
Expand Down Expand Up @@ -37,14 +37,17 @@ jobs:
run: |
cd ./backend
npm install
npm run lint
npm run build
- name: Build Frontend
run: |
cd ./frontend
npm install
npm run lint
npm run build
- name: Build Mobile App
run: |
cd ./mobile
npm install
npm run lint
npm run ts:check
5 changes: 3 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Frontend CI

on:
push:
branches: [ demo ]
branches: [ main ]
pull_request:
branches: [ demo ]
branches: [ main ]

jobs:
build:
Expand All @@ -33,4 +33,5 @@ jobs:
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'
- run: npm install
- run: npm run lint
- run: npm run build
5 changes: 3 additions & 2 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Mobile CI

on:
push:
branches: [ demo ]
branches: [ main ]
pull_request:
branches: [ demo ]
branches: [ main ]

jobs:
build:
Expand All @@ -32,4 +32,5 @@ jobs:
cache: 'npm'
cache-dependency-path: './mobile/package-lock.json'
- run: npm install
- run: npm run lint
- run: npm run ts:check
3 changes: 2 additions & 1 deletion backend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"1tbs"
],
"curly": "error",
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"settings": {
"react": {
Expand Down
3 changes: 2 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"1tbs"
],
"curly": "error",
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"settings": {
"react": {
Expand Down
3 changes: 2 additions & 1 deletion mobile/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"no-console": "off",
"curly": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off"
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"settings": {
"react": {
Expand Down

0 comments on commit 4657a65

Please sign in to comment.