Merge branch 'develop' of https://github.com/kkkkhe/scheduler into de… #50
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
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 |