PDR-326 updating AWS-SDK to V3 #211
Workflow file for this run
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: Run Tests | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
### Install if no cache exists ### | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- run: yarn install --silent --frozen-lockfile | |
- name: Setup DynamoDB Local | |
uses: rrainn/dynamodb-action@v3.0.0 | |
with: | |
sharedDb: true | |
port: 8000 | |
cors: "*" | |
- name: Sleep so DynamoDB has time to wake up | |
uses: GuillaumeFalourd/wait-sleep-action@v1 | |
with: | |
time: '15' # for 15 seconds | |
- run: yarn test --coverage --runInBand | |
env: | |
IS_OFFLINE: true | |
AWS_REGION: local-env | |
TABLE_NAME: ar-tests | |
AWS_ACCESS_KEY_ID: notused | |
AWS_SECRET_ACCESS_KEY: notused |