Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (#123) #351
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tests for general `setup-dart` configurations. | |
name: Dart | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "0 0 * * 0" # Run every Sunday at 00:00. | |
jobs: | |
# Default test configurations. | |
test: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: example | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
sdk: [2.12.4, stable, beta, dev] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Print DART_HOME | |
run: echo "Dart SDK installed in $DART_HOME" | |
- run: dart pub get | |
- run: dart run bin/main.dart | |
- run: dart analyze | |
- run: dart test | |
# Test the raw SDK flavor. | |
test_raw: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
sdk: [dev, main] | |
flavor: [raw] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Run hello world | |
run: | | |
echo "main() { print('hello world'); }" > hello.dart | |
dart hello.dart | |
# Test the architecture input parameter. | |
test_arch: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
architecture: ia32 | |
- name: Run hello world | |
run: | | |
echo "main() { print('hello world'); }" > hello.dart | |
dart hello.dart | |
# Test inferring the channel from the sdk parameter. | |
test_inferred_channels: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sdk: [2.12.0-29.10.beta] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Run hello world | |
run: | | |
echo "main() { print('hello world'); }" > hello.dart | |
dart hello.dart | |
- run: dart --version | |
# Test getting the latest patch release for a major.minor sdk parameter. | |
test_latest_patch_release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sdk: [2.19, 3.0, 3.1] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Run hello world | |
run: | | |
echo "main() { print('hello world'); }" > hello.dart | |
dart hello.dart | |
- run: dart --version |