feat: add first tests #131
Workflow file for this run
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
# 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 |