From aabcfa1a318ea8cf8dc6699a7e12a0fb24a09314 Mon Sep 17 00:00:00 2001 From: Drew Youngwerth Date: Wed, 28 Aug 2024 18:57:57 -0700 Subject: [PATCH] Add PR Workflow for status checks --- .github/workflows/pr.yml | 17 +++++++++++++++++ package.json | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..21fd75cc --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,17 @@ +name: Node.js CI + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: "22.x" + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/package.json b/package.json index 996ec9a3..d0a3f6c4 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "type": "module", "scripts": { "test": "node --test **/__tests__/**/*.test.mjs", + "build": "npx tsc", "prepublishOnly": "tsc" }, "bin": {