Wrap nav in sticky LiveView to preserve sidebar state across navigation #900
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| matrix: | |
| elixir: ["1.17.x", "1.18.x", "1.19.x"] | |
| otp: ["26.x", "27.x"] | |
| services: | |
| db: | |
| image: postgres:13-alpine | |
| env: | |
| POSTGRES_DB: phx_admin_dev | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_HOST_AUTH_METHOD: trust | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
| - name: Get deps | |
| run: mix deps.get | |
| - name: Compile deps | |
| run: mix deps.compile | |
| - name: Check for uncommitted changes | |
| run: exit $( git status --porcelain | head -255 | wc -l ) | |
| - name: Set up database | |
| run: PGPASSWORD=postgres psql -h 127.0.0.1 -U postgres -d phx_admin_dev -f dev/initdb/structure.sql | |
| - name: Run tests | |
| run: mix do compile --warnings-as-errors + test |