Skip to content

Commit

Permalink
👷 Add runnable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Jul 5, 2024
1 parent b8c80d2 commit 884b24d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Runnable (stable)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Analyze on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- name: (Linux) Prepare requirements
run: sudo apt update && sudo apt-get install -y libglu1-mesa ninja-build clang cmake pkg-config libgtk-3-dev liblzma-dev
if: runner.os == 'Linux'
- name: (Linux) Integration test
run: cd example && flutter test -d linux integration_test/simple_test.dart
if: runner.os == 'Linux'
- name: (Windows) Prepare requirements
uses: KyleMayes/install-llvm-action@v1
if: runner.os == 'Windows'
with:
version: "15"
- name: (Windows) Integration test
run: cd example && flutter test -d windows integration_test/simple_test.dart
if: runner.os == 'Windows'
- name: (macOS) Integration test
run: cd example && flutter test -d macos integration_test/simple_test.dart
if: runner.os == 'macOS'
- name: Publish dry run
run: dart pub publish --dry-run
if: github.repository == 'AstroxNetwork/ord_dart'
2 changes: 0 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package example.android.app

plugins {
id "com.android.application"
id "kotlin-android"
Expand Down
2 changes: 0 additions & 2 deletions example/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package example.android

pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
Expand Down

0 comments on commit 884b24d

Please sign in to comment.