30 lines
532 B
YAML
30 lines
532 B
YAML
|
name: Build DeguApp backend
|
||
|
|
||
|
on: pull_request
|
||
|
|
||
|
jobs:
|
||
|
defaults:
|
||
|
run:
|
||
|
working-directory: ./api
|
||
|
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout Repository
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Set up Node.js and TypeScript
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: "20.14.0"
|
||
|
|
||
|
- name: change directory to api/
|
||
|
|
||
|
- name: npm install, build and test
|
||
|
run: |
|
||
|
npm install
|
||
|
npm run build --if-present
|
||
|
npm run test
|
||
|
|