Skip to content

Commit

Permalink
chore: add github actions workflows (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyalcinkaya authored Feb 18, 2024
1 parent 68704a6 commit d5a674b
Show file tree
Hide file tree
Showing 6 changed files with 67 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
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners

* @suyalcinkaya
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### Description

Please provide a brief description of what this PR accomplishes.

If applicable, you should then provide a more detailed description including screenshots (if appropriate) to benefit
everyone.

#### Type of change

- [ ] :bug: Bug fix
- [ ] :rocket: New feature
- [ ] :boom: Breaking change

### How do I test this?

- Provide clear step-by-step instructions for easy reproduction.
- Highlight the current issue and explain how the change resolves it.
- Preferably provide links from the relevant Vercel Preview URL.

### Checklist

Did you remember to take care of the following?

- [ ] `bun install` – for the new dependencies
- [ ] Verify `bun.lockb` file when there is a package addition or update
- [ ] Perform a self-review
- [ ] Provide comments, particularly in hard-to-understand areas
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- 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 d5a674b

Please sign in to comment.