Workflow file for this run
This file contains hidden or 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: Samples Dart (build, test) | ||
on: | ||
push: | ||
branches: | ||
paths: | ||
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/** | ||
pull_request: | ||
paths: | ||
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/** | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
sdk: ["3.1", "2.25.0"] | ||
sample: | ||
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dart-lang/setup-dart@v1 | ||
working-directory: ${{ matrix.sample }} | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- name: pub get | ||
working-directory: ${{ matrix.sample }} | ||
run: dart pub get | ||
- name: build_runner build | ||
working-directory: ${{ matrix.sample }} | ||
run: dart run build_runner build | ||
- name: test | ||
working-directory: ${{ matrix.sample }} | ||
run: dart test |