Skip to content

Development

Development #80

Workflow file for this run

name: CI for restaurant
on:
pull_request:
branches: [main, development]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "21"
- name: ci for api
working-directory: ./api
run: |
npm i
npm i typescript
npm run build
npm run format
npm run test:unit
npm run test:coverage
- name: ci for frontend
working-directory: ./presentation
run: |
npm i
npm run build
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}