Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1c7b077
fix: remove SonarQube job from CI workflow
Savecoders Jul 15, 2025
277a78a
fix: Archive web build as tar.gz for release uploads
Savecoders Jul 15, 2025
d48491a
Merge branch 'RicardoVillamar:main' into main
Savecoders Jul 15, 2025
87e1ef7
fix: rename workflow file to .yaml and update Flutter version
Savecoders Jul 15, 2025
a7414f4
fix: workflow to use stable Flutter version
Savecoders Jul 15, 2025
f725103
fix: stable Flutter CI workflow configuration
Savecoders Jul 15, 2025
024b616
fix: update Gradle distribution URL and configuration settings
Savecoders Jul 17, 2025
d89c729
fix: update Gradle and Flutter dependencies, adjust proguard rules, a…
Savecoders Jul 17, 2025
dd1c919
docs: add SonarQube setup instructions with Docker to README
Savecoders Jul 19, 2025
e18c5d7
refactor: remove unused authentication and notification services, and…
Savecoders Jul 19, 2025
e9a7a4d
feat: add password field to Empleado model and update CambiarPassword…
Savecoders Jul 19, 2025
abdbc27
feat: refactor login screens to use AuthViewModel for authentication …
Savecoders Jul 19, 2025
b954fd1
feat: update Apptitle and Toolbar widgets for improved layout and nav…
Savecoders Jul 19, 2025
10cc1a1
feat: update login form to use email instead of ID and add email vali…
Savecoders Jul 19, 2025
49e15da
feat: update employee registration and editing to include password ha…
Savecoders Jul 19, 2025
3ab7e48
feat: implement EmpleadoProvider for state management and add method …
Savecoders Jul 19, 2025
ace6ecd
feat: add Asistencia model and implement AsistenciaScreen for attenda…
Savecoders Jul 19, 2025
268efcb
feat: enhance CalendarioScreen to accept Empleado data and restrict e…
Savecoders Jul 19, 2025
0cf331f
feat: add PanelEmpleadoScreen for employee management with navigation…
Savecoders Jul 19, 2025
a3670a1
feat: enhance to manage employee attendance with filtering and expor…
Savecoders Jul 19, 2025
290eeaf
fix: refactor imports and enhance HomePage layout with background col…
Savecoders Jul 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Flutter CI

on:
push:
branches: [main]
Expand All @@ -8,151 +7,82 @@ on:
workflow_dispatch:
release:
types: [created]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'

channel: "stable"
- name: Install dependencies
run: flutter pub get

- name: Run analyzer
run: flutter analyze

- name: Run CRUD tests
run: flutter test test/crud/

- name: Run ViewModel tests
run: flutter test test/viewmodels/

- name: Run Utils tests
run: flutter test test/utils/

- name: Run Services tests
run: flutter test test/services/

- name: Run Repositories tests
run: flutter test test/repositories/

- name: Run all tests with coverage
run: flutter test --coverage

- name: Generate test report for SonarQube
run: flutter test --machine --coverage > tests.output

- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/

- name: Upload test report
uses: actions/upload-artifact@v4
with:
name: test-report
path: tests.output

- name: Build APK (release)
run: flutter build apk --release

- name: Build Web (release)
run: flutter build web

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-release-apk
path: build/app/outputs/flutter-apk/app-release.apk

- name: Upload Web Build
uses: actions/upload-artifact@v4
with:
name: web-build
path: build/web

sonarqube:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for SonarQube to analyze all branches

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'

- name: Install dependencies
run: flutter pub get

- name: Download coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report
path: coverage/

- name: Download test report
uses: actions/download-artifact@v4
with:
name: test-report
path: ./

- name: Download sonar-flutter plugin
run: |
curl -L -o sonar-flutter-plugin.jar \
https://github.com/insideapp-oss/sonar-flutter/releases/latest/download/sonar-flutter-plugin.jar

- name: SonarQube Scan
uses: sonarqube-quality-gate-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
scannerHomePath: /opt/sonar-scanner
args: >
-Dsonar.dart.analyzer.mode=DETECT
-Dsonar.dart.analyzer.report.mode=DETECT
-Dsonar.flutter.coverage.reportPath=coverage/lcov.info
-Dsonar.flutter.tests.reportPath=tests.output
-Dsonar.exclusions="**/*.g.dart,**/*.freezed.dart,**/generated_**,**/build/**,**/.dart_tool/**,**/ios/**,**/android/**,**/web/**,**/windows/**,**/linux/**,**/macos/**"
-Dsonar.test.exclusions="**/*_test.dart,**/*_test.dart"
-Dsonar.coverage.exclusions="**/*_test.dart,**/*_test.dart,**/*.g.dart,**/*.freezed.dart,**/generated_**,**/test/**"
-Dsonar.dart.analyzer.options.override=true

release:
needs: build-and-test
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'

channel: "stable"
- name: Install dependencies
run: flutter pub get

- name: Build APK (release)
run: flutter build apk --release

- name: Build Web (release)
run: flutter build web

- name: Create web archive
run: |
cd build/web
tar -czf ../web-release.tar.gz .
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v1
with:
files: |
build/app/outputs/flutter-apk/app-release.apk
build/web/**
build/web-release.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
196 changes: 0 additions & 196 deletions README-Docker.md

This file was deleted.

Loading
Loading