Skip to content

Commit

Permalink
Merge pull request #14 from lpsinger/reuse-workflow
Browse files Browse the repository at this point in the history
Reuse Node.js workflow
  • Loading branch information
dakota002 authored Oct 5, 2023
2 parents 297ac46 + 1afd9cb commit f387c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,4 @@ on:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18']
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: NPM Install
run: npm ci
- name: Run eslint linter
run: npx eslint --max-warnings 0 .
- name: Run Prettier code style checks
run: npx prettier -c .
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
uses: nasa-gcn/.github/.github/workflows/node.yml@main
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"prepare:esbuild": "esbuild index.ts --bundle --packages=external --outfile=index.js --platform=node --format=esm --tree-shaking=true",
"prepare": "run-p prepare:*"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@opensearch-project/opensearch": "^2.2.0",
"env-paths": "^3.0.0",
Expand Down

0 comments on commit f387c55

Please sign in to comment.