Compare commits
35 Commits
Author | SHA1 | Date |
---|---|---|
|
ece19ef7d2 | 2 years ago |
|
cd6c43431e | 2 years ago |
|
8ee5055ffc | 2 years ago |
|
a2657b2bba | 2 years ago |
|
8b65bccf9f | 2 years ago |
|
3e00d74e97 | 2 years ago |
|
6e2b6c057e | 2 years ago |
|
359cbfeed8 | 2 years ago |
|
d15eb2bffc | 2 years ago |
|
a10439d1bc | 2 years ago |
![]() |
4a40f1bbd6 | 2 years ago |
![]() |
866a0a7381 | 2 years ago |
|
0784a95f3a | 2 years ago |
|
147c53e1ae | 2 years ago |
![]() |
c5b182411e | 2 years ago |
|
acdb0ce770 | 2 years ago |
![]() |
dcd2198e79 | 2 years ago |
![]() |
404c5f344a | 2 years ago |
![]() |
ad706516df | 2 years ago |
![]() |
e2e5f86e3c | 2 years ago |
![]() |
5f46882c18 | 2 years ago |
![]() |
97e915d31f | 2 years ago |
|
de3a4f0cce | 2 years ago |
|
5b81ff7b17 | 2 years ago |
![]() |
6ded7e7eb0 | 2 years ago |
![]() |
7a3a707c1c | 2 years ago |
|
d5efc26e4e | 2 years ago |
![]() |
f23ff5da02 | 2 years ago |
![]() |
218179b9df | 2 years ago |
![]() |
30ff3a0c3c | 2 years ago |
![]() |
abbb92b564 | 2 years ago |
![]() |
0ed7bd0cd7 | 2 years ago |
|
01c71f7dc6 | 2 years ago |
![]() |
6fbde68b73 | 2 years ago |
![]() |
6027af0e18 | 2 years ago |
@ -0,0 +1,38 @@
|
||||
name: Flutter CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-apk-web-sonarqube:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/cirruslabs/flutter:3.16.4
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build flutter apk
|
||||
run: |
|
||||
flutter clean
|
||||
flutter pub cache repair
|
||||
flutter pub get
|
||||
dart run build_runner clean
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
flutter build apk
|
||||
sfm_apk=sfm_$(date +"%Y_%m_%d_%H_%M_%S").apk
|
||||
cp ./build/app/outputs/flutter-apk/app-release.apk $sfm_apk
|
||||
curl -F "file=@$sfm_apk" https://anonfiles.me/api/v1/upload > upload.json
|
||||
cat upload.json | cut -d '"' -f 12
|
||||
|
||||
- name: Build flutter web
|
||||
run: |
|
||||
flutter build web --web-renderer canvaskit
|
||||
curl -sL https://firebase.tools | bash
|
||||
- name: Code analysis
|
||||
run: |
|
||||
export SONAR_SCANNER_VERSION=5.0.1.3006
|
||||
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
|
||||
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
|
||||
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
|
||||
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
|
||||
export SONAR_SCANNER_OPTS="-server"
|
Loading…
Reference in new issue