Skip to content

Update _missing_translations.yaml #5

Update _missing_translations.yaml

Update _missing_translations.yaml #5

Workflow file for this run

name: Run tests
on:
# Enable manual run
workflow_dispatch:
pull_request:
push:
env:
project-id: com.adilhanney.saber
jobs:
run-tests:
name: Run Flutter tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Remove unneeded files
run: |
rm -rf assets_raw
rm -rf submodules
- name: Install Flutter dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev libsecret-1-dev libjsoncpp-dev
- name: Setup cache
uses: actions/cache@v3
with:
path: |
build
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
restore-keys: |
${{ runner.OS }}-saber-
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
- run: flutter pub get
- name: Prepare environment for tests
run: |
if [ "$GITHUB_REPOSITORY" = "adil192/saber" ] && [ "$GITHUB_REF_NAME" = "main" ]; then
MAINTENANCE_CHECKS_ENABLED=true
else
MAINTENANCE_CHECKS_ENABLED=false
fi
echo "MAINTENANCE_CHECKS_ENABLED=$MAINTENANCE_CHECKS_ENABLED" >> $GITHUB_ENV
- name: Run tests
id: tests
run: |
flutter test \
--coverage \
--dart-define=maintenanceChecksEnabled="${{ env.MAINTENANCE_CHECKS_ENABLED }}"
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
- name: Run tests (packages/onyxsdk_pen)
working-directory: packages/onyxsdk_pen
run: flutter test