README update #40
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: Continuous Integration | |
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: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.OIDC_ROLE }} | |
aws-region: us-east-1 | |
- name: Run tests | |
env: | |
STACK_NAME: dynamodb-entity-store-ci | |
run: > | |
npm install && npm run deploy-and-all-checks && npm run build | |
# To test that doc generation works | |
- run: npm run generate-docs |