nb lin regression model method name fix #5
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Node.js CI | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
types: [opened, synchronize] | |
# Prevent duplicate workflows from running | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# Static tests don't involve any logic or context. | |
# They are just a set of tests that can detect if we are not introducing any faulty code. | |
static-test: | |
name: π¬ Static tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'npm' | |
- name: π¦ Install dependencies | |
run: npm install | |
# Unit tests are tests that are not dependent on any external service. | |
# Usually, they are tests that are testing the logic of a specific function or component. | |
unit-test: | |
needs: [static-test] | |
name: π¦ Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'npm' | |
- name: π¦ Install dependencies | |
run: npm install | |
- name: π¦ Run unit tests | |
run: npm test | |
# Integration tests are tests that are dependent on external services. | |
integration-test: | |
needs: [static-test] | |
name: π₯ Integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'npm' | |
- name: π¦ Install dependencies | |
run: npm install | |
# - name: π³ Docker compose | |
# run: | |
# docker-compose up -d && sleep 3 && pnpm prisma migrate reset --force | |
# --skip-seed | |
- name: π¦ Run integration tests | |
run: npm test |