Bump path-to-regexp and express #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Lint, Tests, and Prettier checks | |
on: | |
pull_request: | |
branches: ["*"] | |
jobs: | |
lint-test-prettier-check: | |
runs-on: ubuntu-latest | |
name: Lint, Test, and Prettier Check | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.17.0 | |
cache: "npm" | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install | |
- name: Run Lint | |
run: npm run lint | |
- name: Run Tests | |
run: npm run test | |
- name: Run Prettier | |
run: npm run prettier |