Skip to content

Commit

Permalink
fix: CI/CD script
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrycool123 committed Feb 23, 2024
1 parent 7e0cb7a commit 5454a49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
deploy:
test:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
Expand All @@ -28,7 +28,7 @@ jobs:
run: pnpm install

- name: Load test environment variables
run: echo "${{ secrets.OCR_SERVICE_TEST_ENV }}" | base64 --decode >> ./packages/ocr-service/.env.test
run: echo "${{ secrets.OCR_SERVICE_TEST_ENV }}" | base64 --decode >> ./packages/ocr-service/.env.test.local

- name: Run tests
run: pnpm run test
7 changes: 3 additions & 4 deletions .github/workflows/deploy-sls-check-membership.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Deploy sls-check-membership to AWS Lambda

on:
workflow_run:
workflows: ['Run tests']
types:
- completed
push:
branches:
- main

jobs:
deploy:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy-sls-ocr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Deploy sls-ocr to AWS Lambda

on:
workflow_run:
workflows: ['Run tests']
types:
- completed
push:
branches:
- main

jobs:
deploy:
Expand Down

0 comments on commit 5454a49

Please sign in to comment.