Skip to content

Merge pull request #35 from leancodepl/publisher/funnel-topic-existence #7

Merge pull request #35 from leancodepl/publisher/funnel-topic-existence

Merge pull request #35 from leancodepl/publisher/funnel-topic-existence #7

Workflow file for this run

name: dart test
on:
push:
branches: [main]
tags-ignore: ["dart-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