Skip to content

Commit

Permalink
update to v4 checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrown-stateless committed Oct 4, 2024
1 parent a436d11 commit 0e777c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/lint-spec.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Vacuum open API linting
name: Vacuum OpenAPI Linting
run-name: Linting OpenAPI spec with Vacuum
on: [push]
jobs:
vacuum-lint:
runs-on: ubuntu-24.04
container: dshanley/vacuum:v0.13.1
steps:
- uses: actions/checkout@v4
- name: Generate Vacuum HTML Reports
run: mkdir -p reports; for FILEPATH in specs/ccapi*.json; do FILE="$(echo $FILEPATH | cut -d '/' -f2 | cut -d '.' -f1)"; vacuum html-report "${FILEPATH}" "reports/report-${FILE}.html"; done
shell: bash
- name: Archive Vacuum HTML Reports
uses: actions/upload-artifact@v3
with:
name: Vacuum HTML Reports
path: reports/*.html
- name: Lint with Vaccum
run: vacuum lint specs/ccapi* || true
shell: bash

- uses: actions/checkout@v4
- name: Generate Vacuum HTML Reports
run: mkdir -p reports; for FILEPATH in specs/ccapi*.json; do FILE="$(echo $FILEPATH | cut -d '/' -f2 | cut -d '.' -f1)"; vacuum html-report "${FILEPATH}" "reports/report-${FILE}.html"; done
shell: bash
- name: Archive Vacuum HTML Reports
uses: actions/upload-artifact@v3
with:
name: Vacuum HTML Reports
path: reports/*.html
- name: Lint with Vaccum
run: vacuum lint specs/ccapi* || true
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/npm-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
with:
node-version: "20.x"

- name: Step3 Install Dependencies
- name: Install Dependencies
run: npm install

- name: NPM Audit Scan and Generate Report in JSON Format
run: npm audit --json > npm-audit-results.json
continue-on-error: true

- name: Upload NPM Audit Scan Report to GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: npm-audit-results
path: npm-audit-results.json

0 comments on commit 0e777c7

Please sign in to comment.