Bump github/codeql-action/upload-sarif from 4.37.4 to 4.37.7 (#335) #589
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: Haskell Cabal | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| types: [opened, synchronize] | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: CI | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false # don't cancel other jobs if one fails | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| ghc: [9.6.7, 9.8.4, 9.10.2, 9.12.2] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Haskell Compiler (cabal) | |
| id: setup-haskell | |
| uses: haskell-actions/setup@cd0d9bdd65b20557f41bea4dbe43d0b5fbbfe553 # v2.11.0 | |
| with: | |
| ghc-version: ${{ matrix.ghc }} | |
| - name: Cache dist-newstyle | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: dist-newstyle | |
| key: dist-newstyle-${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('simple-echo-example/*') }} | |
| restore-keys: | | |
| dist-newstyle-${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}- | |
| dist-newstyle-${{ matrix.os }}-${{ matrix.ghc }}- | |
| - name: Cache ~/.cabal/store | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ${{ steps.setup-haskell.outputs.cabal-store }} | |
| key: cabal-store-${{ matrix.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }} | |
| restore-keys: cabal-store-${{ matrix.os }}-${{ matrix.ghc }}- | |
| - name: Configure to run tests and benchmarks | |
| run: cabal configure --enable-tests --enable-benchmarks | |
| - name: Build code | |
| run: cabal build | |
| - name: Test code | |
| run: cabal test | |
| - name: Benchmark code | |
| run: cabal bench | |
| - name: Generate documentation | |
| run: cabal haddock all |