mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 00:13:50 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
2.1 KiB
YAML
54 lines
2.1 KiB
YAML
name: Samples Dart (build, test)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
paths:
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
|
|
- samples/openapi3/client/petstore/dart-dio/oneof/**
|
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
|
|
- samples/openapi3/client/petstore/dart-dio/binary_response/**
|
|
pull_request:
|
|
paths:
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
|
|
- samples/openapi3/client/petstore/dart-dio/oneof/**
|
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
|
|
- samples/openapi3/client/petstore/dart-dio/binary_response/**
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
sdk: ["3.9.0"]
|
|
sample:
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/
|
|
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/
|
|
- samples/openapi3/client/petstore/dart-dio/oneof/
|
|
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/
|
|
- samples/openapi3/client/petstore/dart-dio/binary_response/
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: dart-lang/setup-dart@v1
|
|
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
|