Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Jan 9, 2024
2 parents 5d4adb1 + ddd396a commit 69d975b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/sst.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: SST workflow
on:
push:
branches:
- main
on: [push]

concurrency:
group: merge-${{ github.ref }}
Expand All @@ -12,8 +9,27 @@ permissions:
contents: read # This is required for actions/checkout

jobs:
TestAndBuild:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- name: Installing dependencies
run: |
bun install
- name: Run tests
run: |
bun run test
- name: Run build
run: |
bun run build
DeployApp:
runs-on: ubuntu-latest
environment: Production
needs: TestAndBuild
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
env:
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ vars.NEXT_PUBLIC_GA_MEASUREMENT_ID }}
steps:
Expand All @@ -25,6 +41,9 @@ jobs:
with:
role-to-assume: ${{ vars.ROLE_TO_ASSUME }}
aws-region: ap-southeast-1
- name: Installing dependencies
run: |
bun install
- name: Deploy app
run: |
bun install && bun sst deploy --stage prod
bun sst deploy --stage prod
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "jest --watch"
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@heroicons/react": "^2.1.1",
Expand Down

0 comments on commit 69d975b

Please sign in to comment.