Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add next lint and prettier workflow #307

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
31 changes: 31 additions & 0 deletions .github/workflows/next-lint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Next.js Linting Check

on:
pull_request:
branches:
- main
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved
- master
push:
branches:
- main
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved
- master

jobs:
lint:
name: Linting with Next.js
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved

- name: Use Node.js
uses: actions/setup-node@v3
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved
with:
node-version: '14'
ashmit-coder marked this conversation as resolved.
Show resolved Hide resolved

- name: Install Dependencies
run: npm install

- name: Run Linting
run: npm run lint
Loading