Skip to content

Commit

Permalink
Fix invalid workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Jul 27, 2024
1 parent 235baaf commit 6bc0483
Showing 1 changed file with 39 additions and 6 deletions.
45 changes: 39 additions & 6 deletions .github/workflows/sst.dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deployment (Dev)
on:
workflow_run:
workflows: ["Build"]
types:
- completed
push:
branches-ignore:
- 'main'

Expand All @@ -16,10 +13,46 @@ permissions:

jobs:
Test:
uses: ./test.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Build:
needs: Test
uses: ./Build.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
env:
NEXT_PUBLIC_API_URL: ${{ vars.NEXT_PUBLIC_API_URL }}
Deploy:
needs: Build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6bc0483

Please sign in to comment.