diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1b5c992..484bc13 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,13 +1,13 @@ name: CI -on: [ push, pull_request ] +on: [push, pull_request] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ macOS-latest, windows-2019, ubuntu-latest ] + os: [macOS-latest, windows-2019, ubuntu-latest] version: ["3.10.x", "3.19.x", "3.22.x", "3.24.x"] include: - os: macOS-latest @@ -27,16 +27,6 @@ jobs: with: flutter-version: ${{ matrix.version }} channel: "stable" # optional, default to: 'stable' - # - name: Add Flutter tags - # # Add tags, which are also necessary for version checks to work. - # run: git fetch origin +refs/tags/*:refs/tags/* - # working-directory: ${{ github.workspace }}/flutter - # - name: Add Flutter to path - Windows - # if: startsWith(matrix.os, 'windows') - # run: echo "$env:GITHUB_WORKSPACE\flutter\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - # - name: Add Flutter to path - macOS/Linux - # if: startsWith(matrix.os, 'macOS') || startsWith(matrix.os, 'ubuntu') - # run: echo "$GITHUB_WORKSPACE/flutter/bin" >> $GITHUB_PATH - name: Install Linux dependencies if: startsWith(matrix.os, 'ubuntu') run: | @@ -65,5 +55,3 @@ jobs: if: startsWith(matrix.os, 'windows') run: flutter build windows working-directory: ${{ github.workspace }}/flutter_platform_alert/example - - diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 43322c2..119bfe8 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -18,8 +18,8 @@ void main() { // Verify that platform version is retrieved. expect( find.byWidgetPredicate( - (Widget widget) => widget is Text && - widget.data!.startsWith('Running on:'), + (Widget widget) => + widget is Text && widget.data!.startsWith('Running on:'), ), findsOneWidget, );