-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add workflow to run during code review
- Loading branch information
1 parent
71076d0
commit dc8f297
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Code Review | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
format: | ||
name: Format with Prettier | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
- name: Setup node with npm | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
- name: Download dependencies | ||
run: npm ci | ||
- name: Run Prettier | ||
run: npm run prettier | ||
lint: | ||
name: Lint with ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run ESlint | ||
run: npm run lint | ||
build: | ||
name: Ensure successful build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run build | ||
run: npm run build |