diff --git a/.github/workflows/sst.dev.yml b/.github/workflows/sst.dev.yml index 9af16d7..814ae27 100644 --- a/.github/workflows/sst.dev.yml +++ b/.github/workflows/sst.dev.yml @@ -1,9 +1,6 @@ name: Deployment (Dev) on: - workflow_run: - workflows: ["Build"] - types: - - completed + push: branches-ignore: - 'main' @@ -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