Skip to content

Commit

Permalink
chore: add test build command
Browse files Browse the repository at this point in the history
  • Loading branch information
lsndr committed Apr 12, 2024
1 parent 9eabc6c commit 40906ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -27,9 +27,9 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run linter
- name: Run Linter
run: npm run lint
- name: Run prettier
- name: Run Prettier
run: npm run format
- name: Build
run: npm run build
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "eslint \"**/*.{js,ts,tsx,json}\" --max-warnings=0",
"lint:fix": "npm run lint -- --fix",
"lint:fix-staged": "lint-staged",
"build": "tsc -p ./tsconfig.build.json"
"build": "tsc -p ./tsconfig.build.json",
"test:build": "tsc -p ./tsconfig.test.json"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 40906ec

Please sign in to comment.