Skip to content

Commit 810c104

Browse files
committed
add new workflow to test dart
1 parent bd0b81d commit 810c104

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
pull_request:
9+
paths:
10+
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/**
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
sample:
17+
- samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/
18+
matrix:
19+
os: [ubuntu-latest, windows-latest]
20+
sdk: ["3.1", "2.25.0"]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: dart-lang/setup-dart@v1
24+
working-directory: ${{ matrix.sample }}
25+
with:
26+
sdk: ${{ matrix.sdk }}
27+
28+
- name: pub get
29+
working-directory: ${{ matrix.sample }}
30+
run: dart pub get
31+
32+
- name: build_runner build
33+
working-directory: ${{ matrix.sample }}
34+
run: dart run build_runner build
35+
36+
- name: test
37+
working-directory: ${{ matrix.sample }}
38+
run: dart test

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)