Skip to content

Commit

Permalink
feat: Add workflow to run during code review
Browse files Browse the repository at this point in the history
  • Loading branch information
steezplusplus committed Sep 12, 2023
1 parent 71076d0 commit dc8f297
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/code-review.yml
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

0 comments on commit dc8f297

Please sign in to comment.