From b044f4a4b564eae6a92af658deef353946165cea Mon Sep 17 00:00:00 2001 From: Dan Hudlow Date: Tue, 24 Sep 2024 11:28:44 -0500 Subject: [PATCH] Update verify action --- .github/workflows/verify.yaml | 23 ++++++++++------------- package.json | 3 ++- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 5ffe11f..457d321 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -2,13 +2,12 @@ name: build, lint, check, test on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: - runs-on: ubuntu-latest strategy: @@ -16,13 +15,11 @@ jobs: 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 diff --git a/package.json b/package.json index f2b298c..b51439b 100644 --- a/package.json +++ b/package.json @@ -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",