-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 988 Bytes
/
buildAndTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build & Test
on:
push:
branches:
- main
workflow_dispatch:
# Only allow one run at a time for this workflow
# See https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
# This workflow will only run once per this workflow name, and per ref (which is the branch or tag)
concurrency: ${{ github.workflow }}-${{ github.ref }}
# Required because we are using OIDC
permissions:
id-token: write
contents: read
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.ACTIONS_ROLE_ARN }}
aws-region: us-east-1
- name: Test
shell: bash
run: >
npm install &&
npm run type-check-and-unit-test &&
STACK_NAME_PREFIX=coffee-store-ci npm run integration-test