-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.17 KB
/
front-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Frontend Lint
on:
workflow_dispatch:
pull_request:
paths:
- 'member-portal-frontend/**'
permissions:
statuses: write
contents: read
pull-requests: write
defaults:
run:
working-directory: member-portal-frontend
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Set commit status as pending
uses: myrotvorets/set-commit-status-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
context: Check pull request (Frontend)
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
npm install
- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
workdir: member-portal-frontend
fail_on_error: 'true'
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@master
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
context: Check pull request (Frontend)