Skip to content

Commit

Permalink
:octocat: added lint and prettier to gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MammaSonnim committed Jul 22, 2024
1 parent 0b909b8 commit f88385f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
name: Playwright Tests
name: code-checks
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: pnpm install

- name: Run ESLint
run: pnpm lint
env:
NODE_ENV: development
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install dependencies
run: pnpm install

- name: Check Prettier
run: pnpm check
env:
NODE_ENV: development
test:
timeout-minutes: 60
environment: test
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ This project is made for dev training purposes.
Based on [Next.js App Router Course](https://nextjs.org/learn), but I also implemented addtional features.

### Stack:

- Next.js
- React Server Components
- Tailwind CSS
- Playwright
- Linting/Prettier + Husky + lint-staged
- Github actions

0 comments on commit f88385f

Please sign in to comment.