-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 991 Bytes
/
test.yaml
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
name: Release
on:
pull_request:
env:
IMAGES_HOSTNAME: "*"
jobs:
next-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 18
cache: yarn
cache-dependency-path: next/yarn.lock
- name: Install eslint (for easier rebasing, could be added to packages.json later)
working-directory: ./next
run: yarn add --dev eslint-config-next 'eslint@^8'
- name: Install dependencies
working-directory: ./next
run: yarn install --frozen-lockfile
- name: Running linter
working-directory: ./next
run: yarn run next lint --output-file ../next-eslint_report.json --format json
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v3
with:
report-json: "next-eslint_report.json"