Handle Melinda TEMP subfields in CREATEs ; Dependency Update (#486) … #1263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Melinda node tests | |
name: Melinda node tests | |
on: push | |
jobs: | |
build-node-versions: | |
name: Node version matrix | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
env: | |
NPM_CONFIG_IGNORE_SCRIPTS: true | |
- run: npm audit --package-lock-only --production --audit-level=high | |
- run: npm ci | |
- run: npm test | |
- run: npm run build --if-present | |
license-scan: | |
name: License compliance check | |
runs-on: ubuntu-latest | |
container: docker://node:18 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mikaelvesavuori/[email protected] | |
with: | |
exclude_pattern: /^@natlibfi/ | |
njsscan: | |
name: Njsscan check | |
runs-on: ubuntu-latest | |
container: docker://node:18 | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: nodejsscan scan | |
id: njsscan | |
uses: ajinabraham/njsscan-action@master | |
with: | |
args: '.' | |
openshift-webhook: | |
name: OpenShift webhook for image builder | |
needs: [build-node-versions, njsscan] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Production bib webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/main' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_BIB_PROD_FROM_MAIN }} | |
body: '{}' | |
- name: Production aut-aux webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/main' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_AUX_PROD_FROM_MAIN }} | |
body: '{}' | |
- name: Production aut-names webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/main' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_NAMES_PROD_FROM_MAIN }} | |
body: '{}' | |
- name: Production aut-subjects webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/main' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_SUBJECTS_PROD_FROM_MAIN }} | |
body: '{}' | |
- name: Production aut-works webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/main' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_WORKS_PROD_FROM_MAIN }} | |
body: '{}' | |
- name: Test aut aux webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/test' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_AUX_TEST_FROM_TEST }} | |
body: '{}' | |
- name: Test aut names webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/test' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_NAMES_TEST_FROM_TEST }} | |
body: '{}' | |
- name: Test aut subjects webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/test' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_SUBJECTS_TEST_FROM_TEST }} | |
body: '{}' | |
- name: Test aut works webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/test' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_AUT_WORKS_TEST_FROM_TEST }} | |
body: '{}' | |
- name: Test bib webhook | |
uses: joelwmale/webhook-action@master | |
if: github.ref == 'refs/heads/test' | |
with: | |
url: ${{ secrets.WEBHOOK_URL_BIB_TEST_FROM_TEST }} | |
body: '{}' | |