update GitHub actions to run tests on macos
This commit is contained in:
19
.github/workflows/dart.yml
vendored
19
.github/workflows/dart.yml
vendored
@@ -13,26 +13,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
thermion_dart:
|
thermion_dart:
|
||||||
name: thermion_dart
|
name: thermion_dart
|
||||||
runs-on: self-hosted
|
runs-on: macOS
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: thermion_dart # Adjust this path
|
working-directory: thermion_dart
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: flutter pub get # even though this is a Dart package, it has as dev_dependency on objective_c for testing which for some reason has a Flutter dependency
|
run: flutter pub get # even though this is a Dart package, it has as dev_dependency on objective_c for testing which for some reason has a Flutter dependency
|
||||||
|
|
||||||
# Uncomment this step to verify the use of 'dart format' on each commit.
|
|
||||||
# - name: Verify formatting
|
|
||||||
# run: dart format --output=none --set-exit-if-changed .
|
|
||||||
|
|
||||||
#- name: Analyze project source
|
|
||||||
# run: dart analyze
|
|
||||||
|
|
||||||
- name: Build and Test
|
- name: Build and Test
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: dart --enable-experiment=native-assets test
|
run: dart --enable-experiment=native-assets test -j1 test/light_tests.dart
|
||||||
|
|
||||||
# Upload logs on failure
|
# Upload logs on failure
|
||||||
- name: Upload logs
|
- name: Upload logs
|
||||||
@@ -41,8 +32,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: build-logs
|
name: build-logs
|
||||||
path: |
|
path: |
|
||||||
D:\a\thermion\thermion\thermion_dart\.dart_tool\thermion_dart\log\build.log
|
/Users/runner/work/thermion/thermion/thermion_dart//.dart_tool/thermion_dart/log/build.log
|
||||||
# /Users/runner/work/thermion/thermion/thermion_dart//.dart_tool/thermion_dart/log/build.log
|
#D:\a\thermion\thermion\thermion_dart\.dart_tool\thermion_dart\log\build.log
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
# Capture crash dumps if they exist
|
# Capture crash dumps if they exist
|
||||||
|
|||||||
Reference in New Issue
Block a user