Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/actions/setup-dart/action.yaml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: CI

on:
push:
branches: [main]
paths:
- "lib/**"
- "test/**"
- "pubspec.yaml"
- "example/**"
- ".github/workflows/ci.yaml"
- ".github/workflows/reusable_verify.yaml"
- ".github/workflows/**"
pull_request:
paths:
- "lib/**"
- "test/**"
- "pubspec.yaml"
- "example/**"
- ".github/workflows/ci.yaml"
- ".github/workflows/reusable_verify.yaml"
- ".github/workflows/**"
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -53,7 +52,6 @@ jobs:
uses: ./.github/workflows/reusable_verify.yaml
with:
working-directory: .
sdk: flutter
secrets: inherit

verify_example:
Expand All @@ -62,5 +60,4 @@ jobs:
uses: ./.github/workflows/reusable_verify.yaml
with:
working-directory: example
sdk: flutter
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
tags:
- "*"
- "v[0-9]+.[0-9]+.[0-9]+"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
31 changes: 3 additions & 28 deletions .github/workflows/reusable_verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ on:
required: false
default: "."
type: string
sdk:
description: 'Which SDK to use: "dart" or "flutter"'
required: false
default: "dart"
type: string

run-tests:
description: "Whether to run tests"
required: false
Expand Down Expand Up @@ -40,14 +36,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Dart Environment
if: ${{ inputs.sdk == 'dart' }}
uses: ./.github/actions/setup-dart
with:
working-directory: ${{ inputs.working-directory }}

- name: Setup Flutter Environment
if: ${{ inputs.sdk == 'flutter' }}
uses: ./.github/actions/setup-flutter
with:
flutter-version: ${{ secrets.FLUTTER_VERSION }}
Expand All @@ -67,21 +56,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Dart Environment
if: ${{ inputs.sdk == 'dart' }}
uses: ./.github/actions/setup-dart
with:
working-directory: ${{ inputs.working-directory }}

- name: Setup Flutter Environment
if: ${{ inputs.sdk == 'flutter' }}
uses: ./.github/actions/setup-flutter
with:
flutter-version: ${{ secrets.FLUTTER_VERSION }}
working-directory: ${{ inputs.working-directory }}

- name: Analyze code
run: dart analyze --fatal-infos .
run: flutter analyze --fatal-infos .
working-directory: ${{ inputs.working-directory }}

test:
Expand All @@ -94,19 +76,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Dart Environment
if: ${{ inputs.sdk == 'dart' }}
uses: ./.github/actions/setup-dart
with:
working-directory: ${{ inputs.working-directory }}

- name: Setup Flutter Environment
if: ${{ inputs.sdk == 'flutter' }}
uses: ./.github/actions/setup-flutter
with:
flutter-version: ${{ secrets.FLUTTER_VERSION }}
working-directory: ${{ inputs.working-directory }}

- name: Run tests
run: ${{ inputs.sdk }} test
run: flutter test
working-directory: ${{ inputs.working-directory }}