Skip to content

Commit

Permalink
Update what runs on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed May 2, 2024
1 parent a8fe80b commit 2cbaefc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,20 @@ jobs:
with:
node-version: "20"
- run: npm ci
- run: npm run lint
- run: npm run format-check

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm test

dogfood:
name: Dogfood the action
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test": "vitest run",
"test-watch": "vitest",
"format": "rescript format -all",
"format-check": "rescript format -all --check",
"package": "esbuild src/Index.res.mjs --outfile=dist/index.js --bundle --platform=node --target=node20",
"all": "npm run res:build && npm run test && npm run format && npm run package"
},
Expand Down

0 comments on commit 2cbaefc

Please sign in to comment.