Skip to content

fix

fix #2

name: Samples Dart (build, test)

Check failure on line 1 in .github/workflows/samples-dart-build-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/samples-dart-build-test.yaml

Invalid workflow file

(Line: 24, Col: 9): Unexpected value 'working-directory'
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