forked from NUWCDIVNPT/stigman-watcher
-
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.
commit f08e187 Author: csmig <[email protected]> Date: Thu Feb 29 18:58:21 2024 +0000 chore: remove/update dependencies (NUWCDIVNPT#97) commit a70d38a Author: csmig <[email protected]> Date: Thu Feb 22 19:41:45 2024 +0000 feat: in scan mode, migrate addToHistory() calls to the queue handlers (NUWCDIVNPT#93) Co-authored-by: matte22 <[email protected]> commit d007792 Author: Mathew <[email protected]> Date: Thu Feb 22 13:28:34 2024 -0500 test: Create Workflow for unit testing. (NUWCDIVNPT#92) commit e398da9 Author: Mathew <[email protected]> Date: Mon Feb 19 17:57:22 2024 -0500 feat: scan mode history management (NUWCDIVNPT#90) commit 00f497f Author: csmig <[email protected]> Date: Fri Feb 16 15:37:43 2024 +0000 feat: pass filename to parsers as sourceRef (NUWCDIVNPT#91)
- Loading branch information
Showing
12 changed files
with
2,058 additions
and
311 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
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,40 @@ | ||
name: Run Unit Tests and Upload Coverage Artifact | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "lib/**" | ||
- "index.js" | ||
- "test/**" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "lib/**" | ||
- "index.js" | ||
- "test/**" | ||
|
||
jobs: | ||
build_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install app dependencies | ||
run: npm ci | ||
- name: Create .env file | ||
run: echo -e "WATCHER_COLLECTION=1\nWATCHER_API_BASE=url\nWATCHER_AUTHORITY=auth\nWATCHER_CLIENT_ID=clientId\nWATCHER_CLIENT_SECRET=secret" > .env | ||
- name: Run tests | ||
run: npm test | ||
- name: Upload coverage to github | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ always() }} | ||
with: | ||
name: coverage | ||
path: coverage |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ watched/ | |
.env | ||
*.log | ||
log.json | ||
bundle.js | ||
bundle.js | ||
coverage/ |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
* | ||
|
||
# Except this file | ||
!.gitignore | ||
!.gitignore |
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
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
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
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
Oops, something went wrong.