Skip to content

Commit 443fd76

Browse files
authored
Add new workflow to test dart-dio samples (#21838)
* add new workflow to test dart * fix * fix * fix versions * newer version * newer version * newer version * newer version * newer version * setup flutter * update * update * fix path * trigger build failure * Revert "trigger build failure" This reverts commit 36b688d.
1 parent 9c1b680 commit 443fd76

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Samples Dart (build, test)
2+
3+
on:
4+
push:
5+
branches:
6+
paths:
7+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
8+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
9+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
10+
- samples/openapi3/client/petstore/dart-dio/oneof/**
11+
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
12+
- samples/openapi3/client/petstore/dart-dio/binary_response/**
13+
pull_request:
14+
paths:
15+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
16+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/**
17+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/**
18+
- samples/openapi3/client/petstore/dart-dio/oneof/**
19+
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/**
20+
- samples/openapi3/client/petstore/dart-dio/binary_response/**
21+
22+
jobs:
23+
test:
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, windows-latest]
28+
sdk: ["3.9.0"]
29+
sample:
30+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
31+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/
32+
#- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/
33+
- samples/openapi3/client/petstore/dart-dio/oneof/
34+
- samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/
35+
- samples/openapi3/client/petstore/dart-dio/binary_response/
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- uses: dart-lang/setup-dart@v1
40+
with:
41+
sdk: ${{ matrix.sdk }}
42+
43+
- name: pub get
44+
working-directory: ${{ matrix.sample }}
45+
run: dart pub get
46+
47+
- name: build_runner build
48+
working-directory: ${{ matrix.sample }}
49+
run: dart run build_runner build
50+
51+
- name: test
52+
working-directory: ${{ matrix.sample }}
53+
run: dart test

samples/openapi3/client/petstore/dart-dio/oneof/.openapi-generator-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#
26+
#

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#

0 commit comments

Comments
 (0)