Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SoorajModi committed May 17, 2024
1 parent b721cc3 commit e006c90
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 19, 20, 21 ]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Node 🎯
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies 💿
run: npm ci

- name: Run linter ⚡
run: next lint

- name: Run tests ✅
run: npm test

- name: Run build 🔨
run: next build
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ npm ci

Run server on [http://localhost:3000](http://localhost:3000)
```bash
npm run dev
next start
```

Build
```bash
npm run build
next build
```

Run tests
Run linter
```bash
npm test
next lint
```

## License
Expand Down

0 comments on commit e006c90

Please sign in to comment.