chore: Bump phoenix_live_view from 1.2.9 to 1.2.11 #3827
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: Elixir CI | |
| on: | |
| schedule: | |
| - cron: "0 5 * * *" | |
| push: | |
| branches: master | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # Needed to check out code | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| asdf: | |
| name: ASDF | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| # Cache the ASDF directory, using the values from .tool-versions. | |
| - name: ASDF cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.asdf | |
| key: ${{ runner.os }}-asdf-v3-${{ hashFiles('.tool-versions') }} | |
| id: asdf-cache | |
| # Only run `asdf install` if we didn't hit the cache. | |
| - uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4.0.1 | |
| if: steps.asdf-cache.outputs.cache-hit != 'true' | |
| - run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| if: steps.asdf-cache.outputs.cache-hit != 'true' | |
| deps: | |
| name: Get Dependencies | |
| runs-on: ubuntu-22.04 | |
| needs: asdf | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Restore dependencies cache | |
| id: deps-cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | |
| - name: ASDF cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.asdf | |
| key: ${{ runner.os }}-asdf-v3-${{ hashFiles('.tool-versions') }} | |
| if: steps.deps-cache.outputs.cache-hit != 'true' | |
| - uses: mbta/actions/reshim-asdf@62db3e5c547c3c7f439c4a7fb98e69fc79c1a9cc # v2.21 | |
| if: steps.deps-cache.outputs.cache-hit != 'true' | |
| - name: Install dependencies | |
| run: mix deps.get | |
| if: steps.deps-cache.outputs.cache-hit != 'true' | |
| dev: | |
| name: Dev Tasks | |
| runs-on: ubuntu-22.04 | |
| needs: deps | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: ASDF cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.asdf | |
| key: ${{ runner.os }}-asdf-v3-${{ hashFiles('.tool-versions') }} | |
| - uses: mbta/actions/reshim-asdf@62db3e5c547c3c7f439c4a7fb98e69fc79c1a9cc # v2.21 | |
| - name: Restore dependencies cache | |
| id: deps-cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | |
| - name: Restore dev build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: _build/dev | |
| key: ${{ runner.os }}-mix-dev-${{ hashFiles('**/mix.lock') }} | |
| - name: Check formatting | |
| run: mix format --check-formatted | |
| - name: Compile (warnings as errors) | |
| run: mix compile --force --warnings-as-errors | |
| - name: Package Audits | |
| run: | | |
| mix hex.audit | |
| # Commented out because: | |
| # deps.audit complains about our current hackney version, | |
| # but there's no way to resolve it due to other deps requiring | |
| # lower versions of hackney. | |
| # | |
| # Ticket to fix this: | |
| # https://app.asana.com/1/15492006741476/project/1204137169527258/task/1216239072221031?focus=true | |
| # mix deps.audit | |
| - name: Credo | |
| run: mix credo --strict | |
| - name: Sobelow (Security) | |
| run: | | |
| cd apps/api_web | |
| mix sobelow --skip --exit | |
| dialyzer: | |
| name: Dialyzer | |
| runs-on: ubuntu-22.04 | |
| needs: deps | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: ASDF cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.asdf | |
| key: ${{ runner.os }}-asdf-v3-${{ hashFiles('.tool-versions') }} | |
| - uses: mbta/actions/reshim-asdf@62db3e5c547c3c7f439c4a7fb98e69fc79c1a9cc # v2.21 | |
| - name: Restore dependencies cache | |
| id: deps-cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | |
| - uses: mbta/actions/dialyzer@62db3e5c547c3c7f439c4a7fb98e69fc79c1a9cc # v2.21 | |
| test: | |
| name: Test Tasks | |
| runs-on: ubuntu-22.04 | |
| needs: deps | |
| services: | |
| dynamodb: | |
| image: amazon/dynamodb-local@sha256:c8702bde709520b90930c20ee430d4123cd731da8e544cc4ccae0e2a78ee4fce # 2.0.0 | |
| ports: | |
| - 8000:8000 | |
| mosquitto: | |
| image: eclipse-mosquitto@sha256:212f89e1eaeb2c322d6441b64396e3346026674db8fa9c27beac293405c32b3c # 2.0.22 | |
| ports: | |
| - 1883:1883 | |
| volumes: | |
| - ./mosquitto:/mosquitto/config/ | |
| options: --name mqtt | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Restart MQTT to load mosquitto/mosquitto.conf from checkout | |
| run: docker restart mqtt | |
| - name: ASDF cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.asdf | |
| key: ${{ runner.os }}-asdf-v3-${{ hashFiles('.tool-versions') }} | |
| - uses: mbta/actions/reshim-asdf@62db3e5c547c3c7f439c4a7fb98e69fc79c1a9cc # v2.21 | |
| - name: Restore dependencies cache | |
| id: deps-cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: deps | |
| key: ${{ runner.os }}-mix-v2-${{ hashFiles('**/mix.lock') }} | |
| - name: Restore test build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: _build/test | |
| key: ${{ runner.os }}-mix-test-${{ hashFiles('**/mix.lock') }} | |
| - name: Run lcov and tests | |
| run: mix lcov --exit | |
| - name: Run integration tests | |
| working-directory: apps/state_mediator | |
| run: mix test --only integration | |
| - name: Save PR information | |
| run: | | |
| mkdir -p cover | |
| echo "${PR_NUMBER}" > cover/PR_NUMBER | |
| echo "${PR_SHA}" > cover/PR_SHA | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PR_SHA: ${{ github.event.pull_request.head.sha }} | |
| if: github.event.pull_request | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: elixir-lcov | |
| path: cover/ | |
| zizmor: | |
| name: Run zizmor 🌈 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run zizmor 🌈 | |
| uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7 | |
| with: | |
| persona: pedantic | |
| advanced-security: false |