ci: remove sq CI
This commit is contained in:
parent
6a5ddedffd
commit
8665db6c0f
2 changed files with 3 additions and 77 deletions
|
@ -1,77 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'dev'
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SQ_KEY }}
|
||||
jobs:
|
||||
build:
|
||||
runs-on: bookworm
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update && apt-get upgrade -y
|
||||
apt-get install -y git curl wget
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
|
||||
bash nodesource_setup.sh
|
||||
apt-get install -y nodejs
|
||||
|
||||
- name: Initialize scanner
|
||||
run: |
|
||||
export SONAR_SCANNER_VERSION=6.0.0.4432
|
||||
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"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: https://github.com/actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v3
|
||||
with:
|
||||
log-accepted-android-sdk-licenses: false
|
||||
packages: "tools platform-tools emulator"
|
||||
|
||||
- name: Install Flutter
|
||||
run: |
|
||||
wget -nv https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${{ vars.FLUTTER_VERSION }}-stable.tar.xz -O flutter.tar.xz
|
||||
tar -xf flutter.tar.xz -C $HOME
|
||||
export PATH=$PATH:$HOME/flutter/bin
|
||||
rm flutter.tar.xz
|
||||
git config --global --add safe.directory $HOME/flutter
|
||||
flutter doctor -v
|
||||
flutter config --no-cli-animations
|
||||
flutter config --disable-analytics
|
||||
flutter channel beta
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PATH=$PATH:$HOME/flutter/bin:$ANDROID_HOME/emulator
|
||||
echo "Downloading tools"
|
||||
sdkmanager "platform-tools" "platforms;android-${{ vars.ANDROID_API }}"
|
||||
sdkmanager --install "system-images;android-${{ vars.ANDROID_API }};${{ vars.ANDROID_TARGET }};${{ vars.ANDROID_ARCH }}"
|
||||
sdkmanager --update
|
||||
echo "y" | sdkmanager --licenses
|
||||
sdkmanager --list
|
||||
echo "Creating AVD"
|
||||
echo "no" | avdmanager -v create avd --force --name "android_emulator" --package "system-images;android-${{ vars.ANDROID_API }};${{vars.ANDROID_TARGET}};${{ vars.ANDROID_ARCH }}" --tag "${{vars.ANRDOID_TARGET}}" --sdcard 128M --device "${{ vars.ANDROID_DEVICE }}"
|
||||
echo "Starting AVD"
|
||||
emulator -avd "android_emulator" -no-audio -no-window -no-snapstorage -no-snapshot -gpu swiftshader_indirect -no-boot-anim -no-accel -wipe-data -skip-adb-auth &
|
||||
sleep 10
|
||||
echo Done
|
||||
flutter doctor -v
|
||||
echo "Running test"
|
||||
flutter pub get
|
||||
flutter test integration_test/app_test.dart --coverage --reporter json > tests.output
|
||||
|
||||
- name: Run scanner
|
||||
run: |
|
||||
sonar-scanner
|
|
@ -40,5 +40,8 @@ end
|
|||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
flutter_additional_ios_build_settings(target)
|
||||
target.build_configurations.each do |config|
|
||||
config.build_settings['VALID_ARCHS'] = 'arm64, arm64e, x86_64'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue