Skip to content

Commit

Permalink
chore: add github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
suyalcinkaya committed Feb 18, 2024
1 parent 68704a6 commit 991ca10
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"settings": {
"import/resolver": {
"alias": {
"extensions": [".js"],
"extensions": [".js", ".jsx"],
"map": [["@", "./src"]]
}
}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
run: bun install
- name: Run ESLint
run: bun lint
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Lint PR'

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prettier": "prettier --write \"**/*.{html,js,json,md,mdx,mjs}\"",
"clear-cache": "rm -rf .next",
"unused": "next-unused",
"lint": "eslint src --ext js"
"lint": "eslint . --ext .js,.jsx"
},
"engines": {
"node": "18.x"
Expand Down

0 comments on commit 991ca10

Please sign in to comment.