-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab5b593
commit 7f94221
Showing
1 changed file
with
3 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,13 @@ on: | |
- main | ||
|
||
jobs: | ||
source: | ||
build_test_security_notify: | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
build: | ||
needs: source | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
steps: | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -28,22 +24,15 @@ jobs: | |
- name: Build | ||
run: npm run build | ||
|
||
test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run tests | ||
run: npm test | ||
|
||
security_and_notify: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/[email protected] | ||
with: | ||
args: --severity-threshold=high | ||
fail-on-issues: true | ||
|
||
- name: Send failure notification | ||
if: failure() | ||
uses: dawidd6/action-send-mail@v3 | ||
|