Skip to content

Commit

Permalink
take a swing at using junit reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
philsturgeon committed Jan 7, 2025
1 parent 6b55f5b commit e3b7bb5
Show file tree
Hide file tree
Showing 4,605 changed files with 1,633,589 additions and 24 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 8 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Lint

"on":
pull_request:
branches: [main]
pull_request: {}
push:
branches: [main]
paths-ignore:
Expand All @@ -19,6 +18,9 @@ jobs:
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
Expand All @@ -30,9 +32,8 @@ jobs:
- 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: always()
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure() # always run even if the previous step fails
with:
files: |
lint-results-*.xml
report_paths: lint-results-*.xml
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
node_modules/
package-lock.json

# Fern Server Stubs
fern
server/
10 changes: 2 additions & 8 deletions .vacuum/ruleset.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
extends:
# extends: [[spectral:oas, recommended], [vacuum:owasp, all]]
extends:
- spectral:oas
# - "@apisyouwonthate/style-guide"
# - "@stoplight/spectral-owasp-ruleset"

rules:
# The API doesn't have these (yet?)
# api-home: off
# api-health: off

oas3-missing-example: off
8 changes: 4 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ security:
- OAuth2:
- read

# x-topics:
# - title: Getting started
# content:
# $ref: ./docs/getting-started.md
x-topics:
- title: Getting started
content:
$ref: ./docs/getting-started.md

tags:
- name: Stations
Expand Down
Loading

0 comments on commit e3b7bb5

Please sign in to comment.