Skip to content

Commit

Permalink
Add PR Workflow for status checks
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-y committed Aug 29, 2024
1 parent 3562d41 commit aabcfa1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "module",
"scripts": {
"test": "node --test **/__tests__/**/*.test.mjs",
"build": "npx tsc",
"prepublishOnly": "tsc"
},
"bin": {
Expand Down

0 comments on commit aabcfa1

Please sign in to comment.