From 27427c1a0b19e97bc45e2d45a7659c4aa2c99a8e Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Mon, 4 Dec 2023 01:02:58 +0100 Subject: [PATCH] ci remove non stable for windows/mac --- .github/workflows/run_ci.yml | 17 ++++++++++++++--- .github/workflows/run_ci_downgrade_analyze.yml | 11 ++++++----- repo_support/pubspec.yaml | 2 +- repo_support/tool/run_ci.dart | 2 +- repo_support/tool/travis.dart | 17 ----------------- 5 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 repo_support/tool/travis.dart diff --git a/.github/workflows/run_ci.yml b/.github/workflows/run_ci.yml index 2397f065..59b3fab6 100644 --- a/.github/workflows/run_ci.yml +++ b/.github/workflows/run_ci.yml @@ -7,7 +7,7 @@ on: jobs: test: - name: Test on ${{ matrix.os }} / ${{ matrix.dart }} + name: Test on ${{ matrix.os }} / dart ${{ matrix.dart }} runs-on: ${{ matrix.os }} defaults: run: @@ -15,8 +15,19 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - dart: [3.0.5, stable, beta, dev] + include: + - os: ubuntu-latest + dart: 3.0.5 + - os: ubuntu-latest + dart: stable + - os: ubuntu-latest + dart: beta + - os: ubuntu-latest + dart: dev + - os: windows-latest + dart: stable + - os: macos-latest + dart: stable steps: - uses: actions/checkout@v2 - uses: dart-lang/setup-dart@v1.3 diff --git a/.github/workflows/run_ci_downgrade_analyze.yml b/.github/workflows/run_ci_downgrade_analyze.yml index 6f192375..e928bb93 100644 --- a/.github/workflows/run_ci_downgrade_analyze.yml +++ b/.github/workflows/run_ci_downgrade_analyze.yml @@ -8,7 +8,7 @@ on: jobs: test: - name: Test on ${{ matrix.os }} / ${{ matrix.dart }} + name: Test on ${{ matrix.os }} / dart ${{ matrix.dart }} runs-on: ${{ matrix.os }} defaults: run: @@ -16,13 +16,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] - dart: [stable] + include: + - os: ubuntu-latest + dart: stable steps: - uses: actions/checkout@v3 - uses: dart-lang/setup-dart@v1.4 with: sdk: ${{ matrix.dart }} - run: dart --version - - run: dart pub global activate dev_test - - run: dart pub global run dev_test:run_ci --pub-downgrade --analyze --no-override --recursive + - run: dart pub global activate dev_build + - run: dart pub global run dev_build:run_ci --pub-downgrade --analyze --no-override --recursive diff --git a/repo_support/pubspec.yaml b/repo_support/pubspec.yaml index c310b2a4..31e987be 100644 --- a/repo_support/pubspec.yaml +++ b/repo_support/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: dev_dependencies: test: '>=1.0.0' - dev_test: '>=0.13.4-dev.1' + dev_build: '>=0.13.4-dev.1' lints: '>=1.0.1' path: dependency_overrides: diff --git a/repo_support/tool/run_ci.dart b/repo_support/tool/run_ci.dart index d8d1bb8f..4cba6f19 100644 --- a/repo_support/tool/run_ci.dart +++ b/repo_support/tool/run_ci.dart @@ -1,4 +1,4 @@ -import 'package:dev_test/package.dart'; +import 'package:dev_build/package.dart'; import 'package:path/path.dart'; Future main() async { diff --git a/repo_support/tool/travis.dart b/repo_support/tool/travis.dart deleted file mode 100644 index 020e5876..00000000 --- a/repo_support/tool/travis.dart +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:path/path.dart'; -import 'package:process_run/shell.dart'; - -Future main() async { - var shell = Shell(); - - for (var dir in ['sembast', 'sembast_web', 'sembast_test']) { - shell = shell.pushd(join('..', dir)); - await shell.run(''' - - pub get - dart tool/travis.dart - -'''); - shell = shell.popd(); - } -}