Skip to content

Commit

Permalink
Merge pull request #2 from frontChapter/add-ci-workflow
Browse files Browse the repository at this point in the history
add tests workflow
  • Loading branch information
AmirHosseinKarimi authored Jan 11, 2024
2 parents f3fb5e2 + 2f9c0f9 commit 5185f1c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main

jobs:
lints:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
- name: ✅ GOOD JOB 👌
run: echo "✅ GOOD JOB 👌"
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.3.1
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "website-frontend",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@8.14.1",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down

0 comments on commit 5185f1c

Please sign in to comment.