From 11b066705fd3c46df8f2552268c887efadb3efbe Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Mon, 2 Mar 2026 10:20:36 -0800 Subject: [PATCH] Add a second GitHub actions workflow Adds a GitHub Actions workflow to automatically run CI checks for the skills CLI tool. Tests are run on both Ubuntu, Mac and Windows for the `stable` and `dev` Dart SDK channels. The workflow triggers on pushes and pull requests to the main branch that modify the `tool/` directory, and runs: - `dart pub get` - `dart analyze --fatal-infos` - `dart format` (on the dev channel only) - `dart test` - is currently omitted as the test suite needs to be refactored to work properly without relying on real API keys in the CI environment https://github.com/flutter/flutter/issues/183124 --- .github/workflows/skills_tool.yaml | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/skills_tool.yaml diff --git a/.github/workflows/skills_tool.yaml b/.github/workflows/skills_tool.yaml new file mode 100644 index 00000000..a05eba8e --- /dev/null +++ b/.github/workflows/skills_tool.yaml @@ -0,0 +1,53 @@ +name: skills_tool +permissions: read-all + +on: + # Run CI on all PRs (against any branch) and on pushes to the main branch. + pull_request: + paths: + - '.github/workflows/skills_tool.yaml' + - 'tool/**' + push: + branches: [ main ] + paths: + - '.github/workflows/skills_tool.yaml' + - 'tool/**' + schedule: + - cron: '0 0 * * 0' # weekly + +defaults: + run: + working-directory: tool + +jobs: + analyze: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: dart-lang/setup-dart@v1 + with: + sdk: stable + + - run: dart pub get + + - run: dart analyze --fatal-infos + + # NOTE: dart test is currently omitted as the test suite needs to be + # refactored to work properly without relying on real API keys in the CI environment + # - run: dart test + + formatting_stable_ubuntu-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dart-lang/setup-dart@v1 + with: + sdk: stable + + - run: dart pub get + + - run: dart format --output=none --set-exit-if-changed .