Skip to content

Commit

Permalink
Reuse Node.js CI workflow from org
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Nov 6, 2024
1 parent ca89311 commit 4d18b6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ 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@v4
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
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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"
},
"devDependencies": {
"@nasa-gcn/eslint-config-gitignore": "^0.0.2",
"@tsconfig/node14": "^14.1.2",
Expand Down

0 comments on commit 4d18b6e

Please sign in to comment.