Skip to content

feat: solve pre-commit #137

feat: solve pre-commit

feat: solve pre-commit #137

Workflow file for this run

name: Node CI
on:
push:
branches: ["master"]
pull_request:
branches: ["*"]
jobs:
build:
runs-on: ubuntu-latest
env:
DB_HOST: ${{ vars.DB_HOST }}
DB_USER: ${{ vars.DB_USER }}
DB_PASSWORD: ${{ vars.DB_PASSWORD }}
DB_NAME: ${{ vars.DB_NAME }}
DB_PORT: ${{ vars.DB_PORT }}
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install packages
run: npm install
- name: API test
run: npm run test
- name: Eslint test API
run: npm run lint