Skip to content

Commit

Permalink
Update verify action
Browse files Browse the repository at this point in the history
  • Loading branch information
hudlow committed Sep 24, 2024
1 parent 6fa132d commit b044f4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@ name: build, lint, check, test

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint # Prettier
- run: npm run check # TypeScript
- run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run verify
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"lint": "prettier . --check",
"format": "prettier . --write",
"check": "tsc --noEmit -p ./tsconfig.json --strict",
"test": "jest"
"test": "jest",
"verify": "npm run lint; npm run check; npm test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b044f4a

Please sign in to comment.