mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-19 00:00:25 +08:00
separate action for test and audit
This commit is contained in:
27
.github/workflows/audit.yml
vendored
Normal file
27
.github/workflows/audit.yml
vendored
Normal file
@ -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
|
||||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -1,7 +1,9 @@
|
|||||||
name: "Test Action"
|
name: "Test"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- 'dependabot/*'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '22 22 * * 5'
|
- cron: '22 22 * * 5'
|
||||||
|
|
||||||
@ -26,7 +28,6 @@ jobs:
|
|||||||
|
|
||||||
- run: npm version
|
- run: npm version
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm audit
|
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|||||||
Reference in New Issue
Block a user