diff --git a/.github/ISSUE_TEMPLATE/repo_manage.md b/.github/ISSUE_TEMPLATE/repo_manage.md new file mode 100644 index 00000000..034838cc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/repo_manage.md @@ -0,0 +1,5 @@ +--- +name: "package:repo_manage" +about: "Create a bug or file a feature request against package:repo_manage." +labels: "package:repo_manage" +--- diff --git a/.github/ISSUE_TEMPLATE/trebuchet.md b/.github/ISSUE_TEMPLATE/trebuchet.md new file mode 100644 index 00000000..e7f1c596 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/trebuchet.md @@ -0,0 +1,5 @@ +--- +name: "package:trebuchet" +about: "Create a bug or file a feature request against package:trebuchet." +labels: "package:trebuchet" +--- diff --git a/.github/labeler.yml b/.github/labeler.yml index b28cc279..791aebea 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,33 +1,33 @@ -# This configures the .github/workflows/pull_request_label.yml workflow. +# This configures the .github/workflows/pull_request_label.yml workflow. 'type-infra': - changed-files: - - any-glob-to-any-file: '.github/**' + - '.github/**' 'package:blast_repo': - changed-files: - - any-glob-to-any-file: 'pkgs/blast_repo/**/*' + - 'pkgs/blast_repo/**' 'package:corpus': - changed-files: - - any-glob-to-any-file: 'pkgs/corpus/**/*' + - 'pkgs/corpus/**' 'package:dart_flutter_team_lints': - changed-files: - - any-glob-to-any-file: 'pkgs/dart_flutter_team_lints/**/*' + - 'pkgs/dart_flutter_team_lints/**' 'package:firehose': - changed-files: - - any-glob-to-any-file: 'pkgs/firehose/**/*' + - 'pkgs/firehose/**' 'package:repo_manage': - changed-files: - - any-glob-to-any-file: 'pkgs/repo_manage/**/*' + - 'pkgs/repo_manage/**' 'package:sdk_triage_bot': - changed-files: - - any-glob-to-any-file: 'pkgs/sdk_triage_bot/**/*' + - 'pkgs/sdk_triage_bot/**' 'package:trebuchet': - changed-files: - - any-glob-to-any-file: 'pkgs/trebuchet/**/*' + - 'pkgs/trebuchet/**' diff --git a/.github/workflows/blast_repo.yml b/.github/workflows/blast_repo.yml new file mode 100644 index 00000000..130c9270 --- /dev/null +++ b/.github/workflows/blast_repo.yml @@ -0,0 +1,43 @@ +name: package:blast_repo + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/blast_repo.yml' + - 'pkgs/blast_repo/**' + push: + branches: [ main ] + paths: + - '.github/workflows/blast_repo.yml' + - 'pkgs/blast_repo/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/blast_repo + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/corpus.yml b/.github/workflows/corpus.yml new file mode 100644 index 00000000..77fa9946 --- /dev/null +++ b/.github/workflows/corpus.yml @@ -0,0 +1,43 @@ +name: package:corpus + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/corpus.yml' + - 'pkgs/corpus/**' + push: + branches: [ main ] + paths: + - '.github/workflows/corpus.yml' + - 'pkgs/corpus/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/corpus + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml deleted file mode 100644 index a430c702..00000000 --- a/.github/workflows/dart.yml +++ /dev/null @@ -1,714 +0,0 @@ -# Created with package:mono_repo v6.6.2 -name: Dart CI -on: - push: - branches: - - main - pull_request: - schedule: - - cron: "0 0 * * 0" -defaults: - run: - shell: bash -env: - PUB_ENVIRONMENT: bot.github -permissions: read-all - -jobs: - job_001: - name: mono_repo self validate - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - name: mono_repo self validate - run: dart pub global activate mono_repo 6.6.2 - - name: mono_repo self validate - run: dart pub global run mono_repo generate --validate - job_002: - name: "analyze_and_format; Dart 3.1.0; PKG: pkgs/corpus; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:pkgs/corpus;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:pkgs/corpus - os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.1.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_corpus_pub_upgrade - name: pkgs/corpus; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/corpus - - name: "pkgs/corpus; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_corpus_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/corpus - needs: - - job_001 - job_003: - name: "analyze_and_format; Dart 3.3.0; PKG: pkgs/repo_manage; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/repo_manage;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0;packages:pkgs/repo_manage - os:ubuntu-latest;pub-cache-hosted;sdk:3.3.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.3.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_repo_manage_pub_upgrade - name: pkgs/repo_manage; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/repo_manage - - name: "pkgs/repo_manage; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_repo_manage_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/repo_manage - needs: - - job_001 - job_004: - name: "analyze_and_format; Dart 3.4.0; PKG: pkgs/sdk_triage_bot; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/sdk_triage_bot;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/sdk_triage_bot - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.4.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_sdk_triage_bot_pub_upgrade - name: pkgs/sdk_triage_bot; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - - name: "pkgs/sdk_triage_bot; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_sdk_triage_bot_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - needs: - - job_001 - job_005: - name: "analyze_and_format; Dart 3.5.0; PKGS: pkgs/dart_flutter_team_lints, pkgs/firehose; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/dart_flutter_team_lints-pkgs/firehose;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/dart_flutter_team_lints-pkgs/firehose - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.5.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_dart_flutter_team_lints_pub_upgrade - name: pkgs/dart_flutter_team_lints; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - name: "pkgs/dart_flutter_team_lints; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_dart_flutter_team_lints_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - id: pkgs_firehose_pub_upgrade - name: pkgs/firehose; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/firehose - - name: "pkgs/firehose; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_firehose_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/firehose - needs: - - job_001 - job_006: - name: "analyze_and_format; Dart dev; PKGS: pkgs/corpus, pkgs/dart_flutter_team_lints, pkgs/firehose, pkgs/repo_manage, pkgs/sdk_triage_bot; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus-pkgs/dart_flutter_team_lints-pkgs/firehose-pkgs/repo_manage-pkgs/sdk_triage_bot;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus-pkgs/dart_flutter_team_lints-pkgs/firehose-pkgs/repo_manage-pkgs/sdk_triage_bot - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_corpus_pub_upgrade - name: pkgs/corpus; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/corpus - - name: "pkgs/corpus; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_corpus_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/corpus - - id: pkgs_dart_flutter_team_lints_pub_upgrade - name: pkgs/dart_flutter_team_lints; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - name: "pkgs/dart_flutter_team_lints; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_dart_flutter_team_lints_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - id: pkgs_firehose_pub_upgrade - name: pkgs/firehose; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/firehose - - name: "pkgs/firehose; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_firehose_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/firehose - - id: pkgs_repo_manage_pub_upgrade - name: pkgs/repo_manage; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/repo_manage - - name: "pkgs/repo_manage; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_repo_manage_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/repo_manage - - id: pkgs_sdk_triage_bot_pub_upgrade - name: pkgs/sdk_triage_bot; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - - name: "pkgs/sdk_triage_bot; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_sdk_triage_bot_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - needs: - - job_001 - job_007: - name: "analyze_and_format; Dart dev; PKGS: pkgs/corpus, pkgs/dart_flutter_team_lints, pkgs/firehose, pkgs/repo_manage, pkgs/sdk_triage_bot; `dart format --output=none --set-exit-if-changed .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus-pkgs/dart_flutter_team_lints-pkgs/firehose-pkgs/repo_manage-pkgs/sdk_triage_bot;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus-pkgs/dart_flutter_team_lints-pkgs/firehose-pkgs/repo_manage-pkgs/sdk_triage_bot - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_corpus_pub_upgrade - name: pkgs/corpus; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/corpus - - name: "pkgs/corpus; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_corpus_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/corpus - - id: pkgs_dart_flutter_team_lints_pub_upgrade - name: pkgs/dart_flutter_team_lints; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - name: "pkgs/dart_flutter_team_lints; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_dart_flutter_team_lints_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - id: pkgs_firehose_pub_upgrade - name: pkgs/firehose; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/firehose - - name: "pkgs/firehose; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_firehose_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/firehose - - id: pkgs_repo_manage_pub_upgrade - name: pkgs/repo_manage; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/repo_manage - - name: "pkgs/repo_manage; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_repo_manage_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/repo_manage - - id: pkgs_sdk_triage_bot_pub_upgrade - name: pkgs/sdk_triage_bot; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - - name: "pkgs/sdk_triage_bot; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_sdk_triage_bot_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - needs: - - job_001 - job_008: - name: "unit_test; Dart 3.1.0; PKG: pkgs/corpus; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:pkgs/corpus;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0;packages:pkgs/corpus - os:ubuntu-latest;pub-cache-hosted;sdk:3.1.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.1.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_corpus_pub_upgrade - name: pkgs/corpus; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/corpus - - name: pkgs/corpus; dart test - run: dart test - if: "always() && steps.pkgs_corpus_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/corpus - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_009: - name: "unit_test; Dart 3.4.0; PKG: pkgs/sdk_triage_bot; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/sdk_triage_bot;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/sdk_triage_bot - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.4.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_sdk_triage_bot_pub_upgrade - name: pkgs/sdk_triage_bot; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - - name: pkgs/sdk_triage_bot; dart test - run: dart test - if: "always() && steps.pkgs_sdk_triage_bot_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_010: - name: "unit_test; Dart 3.5.0; PKG: pkgs/dart_flutter_team_lints; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/dart_flutter_team_lints;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/dart_flutter_team_lints - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.5.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_dart_flutter_team_lints_pub_upgrade - name: pkgs/dart_flutter_team_lints; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - name: pkgs/dart_flutter_team_lints; dart test - run: dart test - if: "always() && steps.pkgs_dart_flutter_team_lints_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_011: - name: "unit_test; Dart 3.5.0; PKG: pkgs/firehose; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/firehose;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/firehose - os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0 - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: "3.5.0" - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_firehose_pub_upgrade - name: pkgs/firehose; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/firehose - - name: pkgs/firehose; dart test - run: dart test - if: "always() && steps.pkgs_firehose_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/firehose - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_012: - name: "unit_test; Dart dev; PKG: pkgs/corpus; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/corpus - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_corpus_pub_upgrade - name: pkgs/corpus; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/corpus - - name: pkgs/corpus; dart test - run: dart test - if: "always() && steps.pkgs_corpus_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/corpus - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_013: - name: "unit_test; Dart dev; PKG: pkgs/dart_flutter_team_lints; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/dart_flutter_team_lints;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/dart_flutter_team_lints - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_dart_flutter_team_lints_pub_upgrade - name: pkgs/dart_flutter_team_lints; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - - name: pkgs/dart_flutter_team_lints; dart test - run: dart test - if: "always() && steps.pkgs_dart_flutter_team_lints_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/dart_flutter_team_lints - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_014: - name: "unit_test; Dart dev; PKG: pkgs/firehose; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/firehose;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/firehose - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_firehose_pub_upgrade - name: pkgs/firehose; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/firehose - - name: pkgs/firehose; dart test - run: dart test - if: "always() && steps.pkgs_firehose_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/firehose - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_015: - name: "unit_test; Dart dev; PKG: pkgs/sdk_triage_bot; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/sdk_triage_bot;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/sdk_triage_bot - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_sdk_triage_bot_pub_upgrade - name: pkgs/sdk_triage_bot; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - - name: pkgs/sdk_triage_bot; dart test - run: dart test - if: "always() && steps.pkgs_sdk_triage_bot_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/sdk_triage_bot - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - job_016: - name: "analyze_format; Dart dev; PKG: pkgs/blast_repo; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/blast_repo;commands:format-analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/blast_repo - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_blast_repo_pub_upgrade - name: pkgs/blast_repo; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/blast_repo - - name: "pkgs/blast_repo; dart format --output=none --set-exit-if-changed ." - run: "dart format --output=none --set-exit-if-changed ." - if: "always() && steps.pkgs_blast_repo_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/blast_repo - - name: "pkgs/blast_repo; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.pkgs_blast_repo_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/blast_repo - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - - job_008 - - job_009 - - job_010 - - job_011 - - job_012 - - job_013 - - job_014 - - job_015 - job_017: - name: "test; Dart dev; PKG: pkgs/blast_repo; `dart test --test-randomize-ordering-seed=random`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/blast_repo;commands:test_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/blast_repo - os:ubuntu-latest;pub-cache-hosted;sdk:dev - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 - with: - sdk: dev - - id: checkout - name: Checkout repository - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - - id: pkgs_blast_repo_pub_upgrade - name: pkgs/blast_repo; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: pkgs/blast_repo - - name: "pkgs/blast_repo; dart test --test-randomize-ordering-seed=random" - run: "dart test --test-randomize-ordering-seed=random" - if: "always() && steps.pkgs_blast_repo_pub_upgrade.conclusion == 'success'" - working-directory: pkgs/blast_repo - needs: - - job_001 - - job_002 - - job_003 - - job_004 - - job_005 - - job_006 - - job_007 - - job_008 - - job_009 - - job_010 - - job_011 - - job_012 - - job_013 - - job_014 - - job_015 - - job_016 diff --git a/.github/workflows/dart_flutter_team_lints.yml b/.github/workflows/dart_flutter_team_lints.yml new file mode 100644 index 00000000..2da2ba97 --- /dev/null +++ b/.github/workflows/dart_flutter_team_lints.yml @@ -0,0 +1,43 @@ +name: package:dart_flutter_team_lints + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/dart_flutter_team_lints.yml' + - 'pkgs/dart_flutter_team_lints/**' + push: + branches: [ main ] + paths: + - '.github/workflows/dart_flutter_team_lints.yml' + - 'pkgs/dart_flutter_team_lints/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/dart_flutter_team_lints + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/firehose.yml b/.github/workflows/firehose.yml new file mode 100644 index 00000000..47a01b5b --- /dev/null +++ b/.github/workflows/firehose.yml @@ -0,0 +1,43 @@ +name: package:firehose + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/firehose.yml' + - 'pkgs/firehose/**' + push: + branches: [ main ] + paths: + - '.github/workflows/firehose.yml' + - 'pkgs/firehose/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/firehose + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/repo_manage.yml b/.github/workflows/repo_manage.yml new file mode 100644 index 00000000..ee9adac5 --- /dev/null +++ b/.github/workflows/repo_manage.yml @@ -0,0 +1,41 @@ +name: package:repo_manage + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/repo_manage.yml' + - 'pkgs/repo_manage/**' + push: + branches: [ main ] + paths: + - '.github/workflows/repo_manage.yml' + - 'pkgs/repo_manage/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/repo_manage + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} diff --git a/.github/workflows/sdk_triage_bot.yml b/.github/workflows/sdk_triage_bot.yml new file mode 100644 index 00000000..e7d93968 --- /dev/null +++ b/.github/workflows/sdk_triage_bot.yml @@ -0,0 +1,43 @@ +name: package:sdk_triage_bot + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/sdk_triage_bot.yml' + - 'pkgs/sdk_triage_bot/**' + push: + branches: [ main ] + paths: + - '.github/workflows/sdk_triage_bot.yml' + - 'pkgs/sdk_triage_bot/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/sdk_triage_bot + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} + + - run: dart test diff --git a/.github/workflows/trebuchet.yml b/.github/workflows/trebuchet.yml new file mode 100644 index 00000000..17076eb6 --- /dev/null +++ b/.github/workflows/trebuchet.yml @@ -0,0 +1,41 @@ +name: package:trebuchet + +permissions: read-all + +on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/trebuchet.yml' + - 'pkgs/trebuchet/**' + push: + branches: [ main ] + paths: + - '.github/workflows/trebuchet.yml' + - 'pkgs/trebuchet/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: pkgs/trebuchet + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [stable, dev] + steps: + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 + - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + with: + sdk: ${{ matrix.sdk }} + + - run: dart pub get + + - run: dart analyze --fatal-infos + + - run: dart format --output=none --set-exit-if-changed . + if: ${{ matrix.sdk == 'stable' }} diff --git a/README.md b/README.md index 5c6102b1..0fe25b38 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This repository is home to general Dart Ecosystem tools and packages. ## Packages | Package | Description | Version | -|---|---|---| +| --- | --- | --- | | [blast_repo](pkgs/blast_repo/) | A tool to bulk validate and fix GitHub repos. | | | [corpus](pkgs/corpus/) | A tool to calculate the API usage for a package. | | | [dart_flutter_team_lints](pkgs/dart_flutter_team_lints/) | An analysis rule set used by the Dart and Flutter teams. | [![pub package](https://img.shields.io/pub/v/dart_flutter_team_lints.svg)](https://pub.dev/packages/dart_flutter_team_lints) | diff --git a/mono_repo.yaml b/mono_repo.yaml deleted file mode 100644 index 78e7a55d..00000000 --- a/mono_repo.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# See https://github.com/google/mono_repo.dart -self_validate: analyze_format - -merge_stages: -- analyze_and_format - -github: - on: - push: - branches: - - main - pull_request: - schedule: - # Setting just `cron` keeps the defaults for `push` and `pull_request` - - cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.” diff --git a/pkgs/blast_repo/mono_pkg.yaml b/pkgs/blast_repo/mono_pkg.yaml deleted file mode 100644 index 0fd2f8fe..00000000 --- a/pkgs/blast_repo/mono_pkg.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# https://github.com/google/mono_repo.dart -sdk: -- dev - -stages: -- analyze_format: - - group: - - format - - analyze: --fatal-infos . -- test: - - test: --test-randomize-ordering-seed=random diff --git a/pkgs/corpus/mono_pkg.yaml b/pkgs/corpus/mono_pkg.yaml deleted file mode 100644 index 3043b491..00000000 --- a/pkgs/corpus/mono_pkg.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# See https://github.com/google/mono_repo.dart -sdk: -- pubspec -- dev - -stages: -- analyze_and_format: - - analyze: --fatal-infos . - - format: - sdk: - - dev -- unit_test: - - test diff --git a/pkgs/dart_flutter_team_lints/mono_pkg.yaml b/pkgs/dart_flutter_team_lints/mono_pkg.yaml deleted file mode 100644 index 3043b491..00000000 --- a/pkgs/dart_flutter_team_lints/mono_pkg.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# See https://github.com/google/mono_repo.dart -sdk: -- pubspec -- dev - -stages: -- analyze_and_format: - - analyze: --fatal-infos . - - format: - sdk: - - dev -- unit_test: - - test diff --git a/pkgs/firehose/mono_pkg.yaml b/pkgs/firehose/mono_pkg.yaml deleted file mode 100644 index 3043b491..00000000 --- a/pkgs/firehose/mono_pkg.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# See https://github.com/google/mono_repo.dart -sdk: -- pubspec -- dev - -stages: -- analyze_and_format: - - analyze: --fatal-infos . - - format: - sdk: - - dev -- unit_test: - - test diff --git a/pkgs/repo_manage/mono_pkg.yaml b/pkgs/repo_manage/mono_pkg.yaml deleted file mode 100644 index 452f42f1..00000000 --- a/pkgs/repo_manage/mono_pkg.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# See https://github.com/google/mono_repo.dart -sdk: -- pubspec -- dev - -stages: -- analyze_and_format: - - analyze: --fatal-infos . - - format: - sdk: - - dev diff --git a/pkgs/sdk_triage_bot/mono_pkg.yaml b/pkgs/sdk_triage_bot/mono_pkg.yaml deleted file mode 100644 index 3043b491..00000000 --- a/pkgs/sdk_triage_bot/mono_pkg.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# See https://github.com/google/mono_repo.dart -sdk: -- pubspec -- dev - -stages: -- analyze_and_format: - - analyze: --fatal-infos . - - format: - sdk: - - dev -- unit_test: - - test