Skip to content

Commit

Permalink
chore: update jest.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoAnastasiadis committed Feb 8, 2024
1 parent 9c9bf3f commit 680620e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,35 @@ on:
branches: ["main"]

jobs:
build:
test_server:
runs-on: ubuntu-latest
env:
NODE_ENV: development
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DEV_DATABASE_URL: ${{ secrets.DEV_DATABASE_URL }}
SALT_ROUNDS: ${{ secrets.SALT_ROUNDS }}
DEV_SALT_ROUNDS: ${{ secrets.DEV_SALT_ROUNDS }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
FACEBOOK_APP_ID: ${{ secrets.FACEBOOK_APP_ID }}
FACEBOOK_APP_SECRET: ${{ secrets.FACEBOOK_APP_SECRET }}
VIBER_BOT_SECRET: ${{ secrets.VIBER_BOT_SECRET }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- run: |
touch .env
echo "${{ secrets.ENV_FILE }}" > .env
- run: npm run lint
- run: npm run test:unit

deploy_server:
runs-on: ubuntu-latest
needs: test_server
env:
GOOGLE_APPLICATION_CREDENTIALS: google-application-credentials.json
steps:
- uses: actions/checkout@v3
with:
node-version: 18
cache: "npm"
- run: npm ci
- run: echo "${{ secrets.ENV_FILE }}" > .env
- run: npm run build:server
- run: echo ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} > google-application-credentials.json"
- run: firebase deploy --only functions:auth,functions:data
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"coverageDirectory": "./coverage/server",
"coverageThreshold": {
"global": { "statements": 98 }
"global": { "statements": 96 }
},
"transform": {
"^.+\\.[tj]sx?$": [
Expand Down

0 comments on commit 680620e

Please sign in to comment.