CMDCT-4184 cdk-side prepping cdk to import Cloudfront Distribution #762
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: Pull Request | |
on: [pull_request] | |
jobs: | |
assignAuthor: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Assign PR to Creator | |
run: | | |
if [ "$PR_AUTHOR_TYPE" != "Bot" ] | |
then | |
gh pr edit $PRNUM --add-assignee $PR_AUTHOR | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PRNUM: ${{ github.event.pull_request.number }} | |
PR_AUTHOR: ${{ github.event.pull_request.user.login }} | |
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }} | |
prettier: | |
name: prettier has been run on compatible files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: check that modified files are prettier | |
run: npx prettier --write . | |
eslint: | |
name: frontend linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: install dependencies | |
working-directory: services/ui-src | |
run: yarn install | |
- name: run eslint | |
working-directory: services/ui-src | |
run: npx eslint . |