-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (40 loc) · 1.17 KB
/
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
name: Lint
"on":
pull_request: {}
push:
branches: [main]
paths-ignore:
- 'README.md'
- 'src/**'
jobs:
build:
name: API Linting
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
# To report junit results to PR
checks: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Lint API
run: npx vacuum report --junit openapi.yaml lint-results
# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: success() || failure()
# with:
# files: |
# lint-results-*.xml
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: JEST Tests # Name of the check run which will be created
path: lint-results-*.xml # Path to test results
reporter: jest-junit # Format of test results