WIP: Improves names in generated OpenAPI specs #218
Workflow file for this run
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: Build and Test | |
| on: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| find-stack-yamls: | |
| name: Find stack.yamls for GHC Matrix | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| stack-yamls: ${{ steps.set-output.outputs.stack-yamls }} | |
| steps: | |
| - name: Find Stack Yamls | |
| id: set-output | |
| uses: flipstone/github-actions/find-stack-ghc-yamls@3e77b573bad98ae3e316b1b912e21ec83932ca8d | |
| build: | |
| name: Build and Test | |
| needs: find-stack-yamls | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| max-parallel: 5 | |
| matrix: | |
| stack-yaml: ${{ fromJson(needs.find-stack-yamls.outputs.stack-yamls) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-version: v3 | |
| with: | |
| key: ${{ env.cache-version }}-${{ matrix.stack-yaml }}-${{ hashFiles(matrix.stack-yaml, 'stack-base.yaml', 'package.yaml') }} | |
| restore-keys: | | |
| ${{ env.cache-version }}-${{ matrix.stack-yaml }}- | |
| path: | | |
| ./stack-root | |
| - name: Setup Stack | |
| uses: flipstone/github-actions/setup-dockerized-stack@3e77b573bad98ae3e316b1b912e21ec83932ca8d | |
| with: | |
| stack-root: ./stack-root | |
| - name: Build and test | |
| run: ./scripts/test --stack-yaml ${{ matrix.stack-yaml }} | |
| formatting-check: | |
| name: Formatting Check | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Stack (for docker env) | |
| uses: flipstone/github-actions/setup-dockerized-stack@3e77b573bad98ae3e316b1b912e21ec83932ca8d | |
| with: | |
| stack-root: ./stack-root | |
| - name: Format and Check for Diff | |
| run: ./scripts/format-repo |