From 83dd3ef0f1e5bc93c5ab7072e1edf1715a01ba9d Mon Sep 17 00:00:00 2001
From: eric sciple
Date: Thu, 7 May 2020 11:39:38 -0400
Subject: [PATCH] separate audit workflow (#450)
---
.github/workflows/audit.yml | 38 ++++++++++++++++++++++++++++++++
.github/workflows/unit-tests.yml | 8 -------
README.md | 3 ++-
3 files changed, 40 insertions(+), 9 deletions(-)
create mode 100644 .github/workflows/audit.yml
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 @@
-
+
+