Refer to new Cognito features (prettify) #266
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: test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: install | |
run: npm install --force | |
- name: lint | |
run: npx eslint --ignore-pattern end-to-end-example . | |
- name: prettier | |
run: npx prettier -c . | |
- name: dist | |
run: npm run dist | |
- name: cdk usage smoke test | |
run: | | |
cd end-to-end-example/cdk | |
npm run install-passwordless-local | |
echo '[email protected]' > .env.local | |
echo 'CDK_STACK_NAME=test' > .env.local | |
npx cdk synth | |
- name: client usage smoke test | |
run: | | |
cd end-to-end-example/client | |
npm run install-passwordless-local | |
echo 'VITE_COGNITO_IDP_ENDPOINT=eu-west-1' > .env.local | |
echo 'VITE_CLIENT_ID=testclientid' > .env.local | |
echo 'VITE_FIDO2_BASE_URL=https://example.org.fido2/' > .env.local | |
npm run build | |
- name: lint end-to-end-example | |
run: npx eslint end-to-end-example |