Skip to content

Commit

Permalink
ci-cd: add ci and update cd concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 18, 2024
1 parent 467e961 commit d63a907
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: deploy
cancel-in-progress: false
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16"

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

0 comments on commit d63a907

Please sign in to comment.