Skip to content

Commit

Permalink
Reuse GitHub Actions Node.js workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Oct 11, 2023
1 parent 44d163b commit 933aa21
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +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: Run unit tests
run: npm run test
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
uses: nasa-gcn/.github/.github/workflows/node.yml@main

0 comments on commit 933aa21

Please sign in to comment.