Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .github/workflows/kb-node-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout the code
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
env:
NPM_CONFIG_IGNORE_SCRIPTS: true
- run: npm audit --package-lock-only --production --audit-level=critical
- run: npm ci
- run: npm run lint
- run: npm run build --if-present
- name: Checkout the code
uses: actions/checkout@v7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
env:
NPM_CONFIG_IGNORE_SCRIPTS: true
- run: npm audit --package-lock-only --production --audit-level=critical
- run: npm ci
- run: npm run lint
- run: npm run build --if-present

license-scan:
name: License compliance check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: mikaelvesavuori/license-compliance-action@main
with:
exclude_pattern: /^@natlibfi/
Expand All @@ -44,13 +44,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v6
- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@master
with:
args: '.'
- name: Checkout the code
uses: actions/checkout@v7
- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@master
with:
args: "."

openshift-webhook:
name: OpenShift webhook for image builder
Expand All @@ -63,10 +63,10 @@ jobs:
if: github.ref == 'refs/heads/test'
with:
url: ${{ secrets.WEBHOOK_URL_TEST }}
body: '{}'
body: "{}"
- name: Production webhook
uses: joelwmale/webhook-action@master
if: github.ref == 'refs/heads/main'
with:
url: ${{ secrets.WEBHOOK_URL_PROD }}
body: '{}'
body: "{}"
Loading
Loading