Skip to content

Dart

Dart #7

Workflow file for this run

# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI Tests
on:
pull_request:
paths:
- 'Dart/**'
push:
branches:
- main
paths:
- 'Dart/**'
env:
CI: true
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
dart-version:
- "3.11.4"
steps:
- uses: actions/checkout@v4
- name: Set up Dart ${{ matrix.dart-version }}
uses: dart-lang/setup-dart@v1.6.0
with:
sdk: ${{ matrix.dart-version }}
- name: Test Dart Samples
run: |
set -e
for dir in $(find Dart -name pubspec.yaml -exec dirname {} \;); do
echo "::group::Testing $dir"
cd "$dir"
dart pub get
dart format --set-exit-if-changed .
dart analyze .
cd - > /dev/null
echo "::endgroup::"
done