feat(cb2-14934): create recalls brokering API #740
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- "develop" | |
pull_request: | |
branches: | |
- "develop" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
local-dynamodb: | |
image: amazon/dynamodb-local | |
ports: | |
- '8000:8000' | |
options: --name local-dynamodb | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.15.0' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run lint | |
run: npm run lint:ci | |
- name: Run tests | |
run: npm run test:ci | |
- name: Build | |
run: npm run build:prod | |
- name: Setup dotenv | |
run: cp .env.example .env | |
- name: Build | |
run: | | |
npm run build:dev | |
- name: Run integration tests | |
run: npm run test:integration:github | |
env: | |
AWS_ACCESS_KEY_ID: foo | |
AWS_SECRET_ACCESS_KEY: bar | |
- name: Cleanup lambda containers | |
run: | | |
NETWORK_NAME="$(docker network ls | grep github_network | awk '{print $2}')" | |
for i in ` docker network inspect -f '{{range .Containers}}{{.Name}} {{end}}' $NETWORK_NAME`; do docker network disconnect -f $NETWORK_NAME $i; done; | |