diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000000..669b4b4965 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,38 @@ +name: toolkit-audit +on: + push: + branches: + - master + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + +jobs: + + build: + name: Audit + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: npm install + run: npm install + + - name: Bootstrap + run: npm run bootstrap + + - name: audit tools + run: npm audit --audit-level=moderate + + - name: audit packages + run: npm run audit-all diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b558b4ebd1..bbcb866c31 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -49,11 +49,3 @@ jobs: - name: Format run: npm run format-check - - - name: audit tools - run: npm audit --audit-level=moderate - if: matrix.runs-on == 'ubuntu-latest' - - - name: audit packages - run: npm run audit-all - if: matrix.runs-on == 'ubuntu-latest' diff --git a/README.md b/README.md index 948dd98564..3dab6d39e9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@