Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednfwela committed Jun 8, 2024
1 parent e87732f commit f367942
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/dart_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ name: Oidc Dart Package Workflow
on:
workflow_call:
inputs:
flutter_channel:
required: false
type: string
default: "stable"
flutter_version:
required: false
type: string
default: "3.22.0"
analyze_directories:
required: false
type: string
Expand Down Expand Up @@ -65,13 +73,15 @@ jobs:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
sdk: ${{inputs.dart_sdk}}
flutter-version: ${{inputs.flutter_version}}
channel: ${{inputs.flutter_channel}}
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}

- name: 📦 Install Dependencies
run: dart pub get
- uses: bluefireteam/melos-action@v3

- name: ⚙️ Run Setup
if: "${{inputs.setup != ''}}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flutter_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

- name: 🧪 Run Tests
if: ${{ inputs.run_tests }}
run: very_good test -j ${{inputs.concurrency}} ${{(inputs.test_recursion && '--recursive') || ''}} ${{(inputs.test_optimization && '--optimization') || '--no-optimization'}} --coverage --test-randomize-ordering-seed random
run: dart test -j ${{inputs.concurrency}} ${{(inputs.test_recursion && '--recursive') || ''}} ${{(inputs.test_optimization && '--optimization') || '--no-optimization'}} --coverage --test-randomize-ordering-seed random

- name: 🧪 Run Custom Tests
if: "${{inputs.custom_tests != ''}}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oidc_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

build:
name: build
uses: ./.github/workflows/flutter_package.yaml
uses: ./.github/workflows/dart_package.yaml
with:
working_directory: packages/oidc_core
min_coverage: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oidc_web_core.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: oidc_core
name: oidc_web_core

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit f367942

Please sign in to comment.