Skip to content

CI tweaks

CI tweaks #203

Workflow file for this run

name: tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '12.x'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.0'
channel: 'stable'
- name: Install dependencies
run: |
flutter config --no-analytics
flutter --disable-telemetry
flutter pub get --suppress-analytics
- name: Run tests
run: |
dart analyze lib example/lib
flutter test
- name: Build APK
run: |
cd example; flutter pub get; flutter build apk --release
- name: Slack notification
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: Integration Testing
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: failure() # Pick up event if the job fails