Skip to content

chore(sonar): configure sonar #2638

chore(sonar): configure sonar

chore(sonar): configure sonar #2638

Workflow file for this run

on: pull_request
name: Test and build
jobs:
flutter-mobile:
runs-on: ubuntu-latest
defaults:
run:
working-directory: yaki_mobile
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "17.x"
distribution: "temurin"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.2"
channel: "stable"
- name: Install lcov
run: |
sudo apt update
sudo apt install lcov
- name: Build apk
run: |
flutter pub get
dart format --set-exit-if-changed .
flutter analyze
flutter test --coverage
flutter build apk --debug
flutter-web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: yaki_mobile
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.2"
channel: "stable"
- name: Build web
run: |
flutter pub get
dart format --set-exit-if-changed .
flutter analyze
flutter test --coverage
flutter build web
nodejs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: yaki_backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build
run: |
npm ci
npm run swagger
npm run test
npm run build
admin-front:
runs-on: ubuntu-latest
defaults:
run:
working-directory: yaki_admin
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build and test Admin FrontEnd
run: |
npm ci
npm run build
npm run coverage
npm run lint
npm run format:check
admin-back:
runs-on: ubuntu-latest
defaults:
run:
working-directory: yaki_admin_backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Build and test Admin backEnd
run: |
echo ${{ secrets.APPLICATION_TEST_PROPERTIES }} | base64 -d > src/test/resources/application-test.properties
gradle clean build
gradle clean test