Refactor to Amplify JS 6; package version updates #5
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: UI Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
type-check: | |
name: UI TypeScript Check | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./src | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/Hydrogen' | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install --immutable --immutable-cache --check-cache | |
- name: Mock aws-custom.json | |
run: | | |
cat > ./aws-custom.json << EOF | |
{ | |
"healthScribeServiceRole": "arn:aws:iam::0123456789012:role/healthScribeServiceRole" | |
} | |
EOF | |
- name: Mock amplifyconfiguration.json | |
run: | | |
cat > ./amplifyconfiguration << EOF | |
{ | |
"aws_project_region": "us-east-1", | |
"aws_user_files_s3_bucket": "s3bucket", | |
} | |
EOF | |
- name: Type Check | |
run: yarn run type-check |