-
-
Notifications
You must be signed in to change notification settings - Fork 438
42 lines (33 loc) · 1.18 KB
/
upload-annotations.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
name: Upload Annotations
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
upload-annotations:
# avoid out of memory issue since macOS has bigger memory
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: macos-latest
# fork repos need to opt out
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
- name: Prepack
run: pnpm prepack
- name: Lint with Report
run: pnpm -r --parallel lint:report && node .scripts/merge-eslint-reports.js
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload ESLint report
uses: actions/upload-artifact@v4
with:
name: eslint_report.json
path: eslint_report.json