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: ./