Skip to content

Commit

Permalink
update node version in build action, add unit test check
Browse files Browse the repository at this point in the history
  • Loading branch information
skylermcnamee-hibc committed Sep 26, 2024
1 parent 22e8990 commit 4fc9aa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/splunk-forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: "12"
node-version: "18"
- name: Install dependencies
run: npm ci
# - name: Unit tests w/ coverage
# run: npm run test:coverage
- name: Unit tests
run: npm run test
- name: LINTing
run: npm run test:lint
# - name: OpenAPI Schema
Expand All @@ -38,7 +38,7 @@ jobs:
needs: [test]
strategy:
matrix:
node-version: [12.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand Down
4 changes: 2 additions & 2 deletions splunk-forwarder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"start-mock-logger": "nodemon bin/mock-logger.js",
"send-test-log": "bin/send-test-log.sh",
"dev": "nodemon --watch src --inspect=0.0.0.0:9229 --exec node ./src/index.js server",
"test": "vitest --coverage",
"test:coverage": "echo \"WARNING: No test specified\" && exit 0",
"test": "vitest",
"test:coverage": "vitest --coverage",
"test:lint": "echo \"WARNING: No LINTer specified\" && exit 0",
"test:schema": "echo \"WARNING: No schema specified\" && exit 0"
},
Expand Down

0 comments on commit 4fc9aa1

Please sign in to comment.