Bump svgo from 3.3.4 to 3.3.5 in /docs #3424
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: Backend tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main", "development"] | |
| concurrency: | |
| group: backend-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| generateMatrix: | |
| name: "Generate matrix from cabal" | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - name: Extract the tested GHC versions | |
| id: set-matrix | |
| uses: kleidukos/get-tested@bbcf52a8d1b69bf8fdd671b490126d53f70fc9a7 # v0.1.10.0 | |
| with: | |
| cabal-file: flora.cabal | |
| ubuntu-version: "24.04" | |
| version: 0.1.7.1 | |
| Backend_tests: | |
| needs: generateMatrix | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: ${{ fromJSON(needs.generateMatrix.outputs.matrix) }} | |
| # Service containers to run with `container-job` | |
| services: | |
| # Label used to access the service container | |
| postgres: | |
| # Docker Hub image | |
| image: postgres | |
| # Provide the password for postgres | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Haskell | |
| uses: haskell-actions/setup@6037f33647c3f17758a2356c80fc4a53d7e0685d # v2.12.0 | |
| with: | |
| ghc-version: ${{ matrix.ghc }} | |
| cabal-version: "latest" | |
| - name: Configure environment | |
| run: | | |
| ./.github/workflows/setup.sh | |
| echo "$HOME/.ghcup/bin" >> $GITHUB_PATH | |
| echo "$HOME/.cabal/bin" >> $GITHUB_PATH | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| echo "$HOME/node_modules/.bin" >> $GITHUB_PATH | |
| echo "STORE_PATH=$(cabal -v0 path --store-dir)" >> $GITHUB_ENV | |
| cabal update | |
| mkdir -p ~/.local/share | |
| git clone https://github.com/haskell/security-advisories.git ~/.local/share/security-advisories | |
| - name: Create freeze file | |
| run: cabal freeze --enable-tests | |
| - name: Cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ hashFiles('./dist-newstyle/cache/plan.json') }} | |
| restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}- | |
| - name: Build | |
| run: | | |
| cabal install postgresql-migration | |
| make build | |
| - name: Test | |
| run: | | |
| set -x | |
| make db-test-setup | |
| cabal run -- flora-cli -c environment.ci.kdl create-user --username "hackage-user" --email "tech@flora.pm" --password "foobar2000" | |
| make test |