Skip to content

Merge branch 'develop' of https://github.com/kkkkhe/scheduler into de… #50

Merge branch 'develop' of https://github.com/kkkkhe/scheduler into de…

Merge branch 'develop' of https://github.com/kkkkhe/scheduler into de… #50

Workflow file for this run

name: Scheduler CI Server
on:
push:
branches: [ "develop" ]
paths-ignore:
- 'client/**'
env:
JWT_SECRET: 'jwt_secret'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './server'
strategy:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Setup node with yarn cache
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: './server/yarn.lock'
- name: Install dependencies
run: yarn
- name: Generate build
run: yarn nest build
- name: Run tests
run: yarn test