Publisher dart client integration tests #24
Workflow file for this run
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
name: dart test | |
on: | |
push: | |
branches: [main] | |
tags-ignore: ["*-v*"] | |
paths: | |
- "dart/**" | |
pull_request: | |
branches: [main] | |
paths: | |
- "dart/**" | |
jobs: | |
test: | |
name: Dart ${{ matrix.version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["3.1.2"] | |
defaults: | |
run: | |
working-directory: dart | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.version }} | |
- name: Download pub dependencies | |
run: dart pub get --no-example | |
- name: Run analyzer | |
run: dart analyze | |
- name: Run tests | |
run: dart test | |
- name: Dry run pub publish | |
# We don't want it to fail the CI, it's just to see how would `pub publish` behave. | |
run: dart pub publish --dry-run || true |