Skip to content

Commit

Permalink
chore: add ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedkamel committed Jan 3, 2025
1 parent abe720a commit 0d3f442
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@muhammedkamel
16 changes: 16 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## 🛠 Why did you push this PR?

Describe the context of this change? Why did you push this PR? and what will it do?

## ✨ Which release version?

Name the version that this PR targeting

## ✅ Checklist before requesting a review

- [ ] I have performed a self-review of my code.
- [ ] I have updated the description of this PR and removed all unneeded placeholder texts.
- [ ] I tested my code AND tried every possible case and scenario.
- [ ] I added unit tests
- [ ] I have used ESLint and Prettier AND fixed all issues before pushing this PR.
- [ ] I have checked CI status AND it is succeeding.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:

pull_request:
types:
- opened
- reopened
- edited
- synchronize
paths-ignore:
- 'README.md'
- '.editorconfig'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test

0 comments on commit 0d3f442

Please sign in to comment.