Skip to content

Commit 97a28a7

Browse files
committed
revamp github actions
1 parent d9f5bcc commit 97a28a7

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,17 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Setup Node.js
2626
uses: actions/setup-node@v3
2727
with:
2828
node-version: 18
2929

3030
- name: Start LocalStack
31-
uses: LocalStack/setup-localstack@v0.2.2
31+
uses: LocalStack/setup-localstack@v0.2.4
3232
env:
33-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
34-
DNS_ADDRESS: 0
35-
DEBUG: 1
36-
with:
37-
use-pro: 'true'
33+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
3834

3935
- name: Install tflocal
4036
run: pip install terraform-local
@@ -45,15 +41,7 @@ jobs:
4541
cdklocal --version
4642
4743
- name: Install dependencies
48-
run: yarn
49-
50-
- name: Prepare Lambda functions
51-
run: yarn build:backend
52-
53-
- name: Bootstrap the infrastructure
54-
run: |
55-
yarn cdklocal bootstrap
56-
sleep 10
44+
run: make install
5745

5846
- name: Deploy the infrastructure
5947
uses: nick-fields/retry@v2
@@ -63,7 +51,10 @@ jobs:
6351
timeout_seconds: 120
6452
retry_wait_seconds: 10
6553
command: |
66-
yarn cdklocal deploy
54+
make deploy
55+
56+
- name: Deploy the frontend
57+
run: make frontend
6758

6859
- name: Send a Slack notification
6960
if: failure() || github.event_name != 'pull_request'
@@ -85,7 +76,7 @@ jobs:
8576
8677
- name: Upload the Diagnostic Report
8778
if: failure()
88-
uses: actions/upload-artifact@v3
79+
uses: actions/upload-artifact@v4
8980
with:
9081
name: diagnose.json.gz
9182
path: ./diagnose.json.gz

0 commit comments

Comments
 (0)