ci: also analyze e2e test ground truth files #1
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: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, review_requested] | |
| jobs: | |
| test: | |
| name: "Tests" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./swagger_parser | |
| strategy: | |
| matrix: | |
| sdk: | |
| - stable | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: dart-lang/setup-dart@v1.7.2 | |
| with: | |
| sdk: "${{ matrix.sdk }}" | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Format | |
| run: dart format --set-exit-if-changed -o none lib/ | |
| - name: Analyze | |
| run: | | |
| # cursed hack to also check the e2e test outputs? | |
| rm analysis_options.yaml | |
| dart analyze | |
| - name: Run tests | |
| run: dart run test |