From 47811bc4009a0330fe2afee6900d146a95a72b9f Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Mon, 11 Nov 2024 11:17:12 -0500 Subject: [PATCH] Reuse org-level CI pipeline --- .github/workflows/node.js.yml | 23 +++-------------------- package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4bfb5ff..a499dd2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,23 +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 TypeScript compiler - run: npx tsc -p . - - 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 }} diff --git a/package-lock.json b/package-lock.json index b9a5b59..761380d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,6 +27,9 @@ "npm-run-all": "^4.1.5", "prettier": "^3.0.0", "typescript": "^5.5.3" + }, + "engines": { + "node": ">=18" } }, "node_modules/@architect/functions": { diff --git a/package.json b/package.json index ad958d0..a8405b6 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "prepare:tsc": "tsc", "prepare": "run-p prepare:*" }, + "engines": { + "node": ">=18" + }, "dependencies": { "@architect/functions": ">=5.3.4", "@aws-sdk/credential-provider-node": "^3.188.0",