From 79b590b1fae31567f22b3864751149f6357964db Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Wed, 18 Mar 2020 18:14:03 +0100 Subject: [PATCH] separate action for test and audit --- .github/workflows/audit.yml | 27 +++++++++++++++++++++++++++ .github/workflows/test.yml | 5 +++-- 2 files changed, 30 insertions(+), 2 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 00000000..f282d949 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,27 @@ +name: "Audit" +on: + pull_request: + push: + branches-ignore: + - 'dependabot/*' + schedule: + - cron: '09 22 * * *' + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + fail-fast: false + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - run: npm version + - run: npm ci + - run: npm audit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24e5e382..295b9f79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,9 @@ -name: "Test Action" +name: "Test" on: pull_request: push: + branches-ignore: + - 'dependabot/*' schedule: - cron: '22 22 * * 5' @@ -26,7 +28,6 @@ jobs: - run: npm version - run: npm ci - - run: npm audit - run: npm test - uses: ./