Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
elthrasher committed Apr 10, 2023
1 parent 12212a3 commit 773993f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy

on:
push:
branches: [main]

jobs:
test:
name: test
uses: aws-community-projects/cicd/.github/workflows/test.yml@main
deploy-sandbox:
needs: test
name: deploy to sandbox
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: node environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: arn:aws:iam::447002520154:role/github-oidc-stack-DeployRole885297C3-1VVRDT551FCCC
aws-region: eu-west-1
- name: cdk deploy
run: npm run deploy
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Run Tests
on: [workflow_call]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run tests
run: npm t
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
dist-ssr
*.local
cdk.out
.vscode

0 comments on commit 773993f

Please sign in to comment.