Skip to content

Optional Task: Add npm audit to Github actions #83

@HeniMKH

Description

@HeniMKH

Concepts

  • No new concepts
  • We are combining what we did from the prewvious 2 tasks

Dependencies

Hint
This page has a config https://github.com/sonatype-nexus-community/example-auditjs-repo/blob/master/.github/workflows/nodejs.yml

name: Node CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [8.x, 10.x, 12.x]

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install, build, and test
      run: |
        npm ci
        npm run build --if-present
        npm test
      env:
        CI: true
    - name: run auditjs
      run: |
        npx auditjs@beta ossi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    📋 Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions