fix: add missing websocket options to Endpoint validation #7178
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, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| mix_test: | |
| name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}}) | |
| env: | |
| MIX_ENV: test | |
| PHX_CI: true | |
| strategy: | |
| matrix: | |
| include: | |
| - elixir: "1.15.8" | |
| otp: "25.3.2.21" | |
| - elixir: "1.18.4" | |
| otp: "27.3.4.13" | |
| - elixir: "1.19.5" | |
| otp: "28.5.0.2" | |
| lint: true | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Restore deps and _build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} | |
| - name: Install dependencies | |
| run: mix deps.get --only test | |
| - name: Remove compiled application files | |
| run: mix clean | |
| - name: Compile & lint dependencies | |
| run: mix compile --warnings-as-errors | |
| if: ${{ matrix.lint }} | |
| - name: Run tests | |
| run: mix test | |
| installer_test: | |
| name: installer test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}}) | |
| env: | |
| MIX_ENV: test | |
| PHX_CI: true | |
| strategy: | |
| matrix: | |
| include: | |
| - elixir: "1.17.3" | |
| otp: "25.3.2.21" | |
| - elixir: "1.19.5" | |
| otp: "28.5.0.2" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Restore deps and _build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} | |
| - name: Install installer dependencies | |
| run: mix deps.get | |
| working-directory: installer | |
| - name: Run installer unit tests | |
| run: mix test | |
| working-directory: installer | |
| - name: Install root dependencies | |
| run: mix deps.get --only test | |
| - name: Run mix_phx_new generator integration tests | |
| run: mix test --only mix_phx_new | |
| npm_test: | |
| name: npm test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Restore deps and _build cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: deps-${{ runner.os }}-npm-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-npm | |
| - name: Set up Node.js 24.x | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24.x | |
| - name: Restore npm cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install locked npm dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test | |
| integration-test-elixir: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| # look for latest alpine image here: https://bob.hex.pm/docker | |
| - elixir: "1.17.3" | |
| otp: "25.3.2.21" | |
| suffix: "alpine-3.22.4" | |
| - elixir: "1.19.5" | |
| otp: "28.3.3" | |
| suffix: "alpine-3.23.4" | |
| container: | |
| image: hexpm/elixir:${{ matrix.elixir }}-erlang-${{ matrix.otp }}-${{ matrix.suffix }} | |
| env: | |
| ELIXIR_ASSERT_TIMEOUT: 10000 | |
| PHX_CI: true | |
| services: | |
| postgres: | |
| image: postgres | |
| ports: | |
| - 5432:5432 | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| mysql: | |
| image: mysql | |
| ports: | |
| - 3306:3306 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | |
| mssql: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| env: | |
| ACCEPT_EULA: Y | |
| SA_PASSWORD: some!Password | |
| ports: | |
| - 1433:1433 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run test script | |
| run: ./integration_test/test.sh |