-
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.
github workflows push to branch. workflow jobs: prepare, audit, lint,…
… test
- Loading branch information
1 parent
e028273
commit 4ee37a6
Showing
1 changed file
with
43 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Push To Branch | ||
|
||
run-name: ${{github.actor}} Pushed To ${{github.ref_name}} | ||
|
||
on: [push] | ||
|
||
jobs: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install npm version 10 | ||
run: npm i -g npm@10 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
audit: | ||
runs-on: ubuntu-latest | ||
needs: prepare | ||
steps: | ||
- run: npm run audit --audit-level=moderate | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
needs: prepare | ||
steps: | ||
- run: npm run lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
needs: prepare | ||
steps: | ||
- run: npm run test |