Skip to content

feat: add first tests #132

feat: add first tests

feat: add first tests #132

Workflow file for this run

# Testing pipeline2
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
# - name: Eslint test client
# run: cd client && npm run lint-client