Skip to content

Commit

Permalink
Create PR.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
as3810t authored Nov 3, 2024
1 parent d9ae277 commit ddd77e4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR
on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
eslint:
name: eslint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check

0 comments on commit ddd77e4

Please sign in to comment.