Revamp PCAUI README for testing locally #117
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 CI Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cfn-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Cloud Formation Linter with Latest Version | |
uses: scottbrenner/cfn-lint-action@v2 | |
- name: Print the Cloud Formation Linter Version & run Linter. | |
run: | | |
cfn-lint --version | |
cfn-lint | |
api-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Nodejs 14 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install dependencies | |
run: npm i | |
working-directory: ./pca-ui/src/lambda | |
- name: Run unit tests | |
run: npm t | |
working-directory: ./pca-ui/src/lambda |