Skip to content

Merge pull request #8 from Samoy/dev #21

Merge pull request #8 from Samoy/dev

Merge pull request #8 from Samoy/dev #21

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
JAVA_VERSION: 17
FLUTTER_VERSION: 3.19.1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
name: Run unit tests on ${{ matrix.os }}
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Install Tools
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
version: 1.0
if: runner.os == 'Linux'
- name: Install dependencies
id: install
run: flutter pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'
- name: Run unit tests
run: flutter test --coverage --reporter github
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Samoy/exif_helper