Something went wrong. Try again.
Elixir client for the Playwright node.js server.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384# This workflow uses actions that are not certified by GitHub.# They are provided by a third-party and are governed by# separate terms of service, privacy policy, and support# documentation.
name: Elixir CI
on: push: branches: ["main"] pull_request: branches: ["main"]
permissions: contents: read
env: MIX_ENV: test PW_TIMEOUT: 4000
jobs: build: name: Build and lint runs-on: ubuntu-latest
steps: - uses: actions/checkout@v7.0.0 - name: Setup languages uses: jdx/mise-action@v4.2.0 - name: Install dependencies run: mix do deps.get, deps.compile - name: Check Formatting run: mix format --check-formatted - name: Check Credo run: mix credo - name: Compiles without warnings run: mix compile --warnings-as-errors - name: Restore Dialyzer PLT cache id: plt_cache uses: actions/cache/restore@v6 with: key: plt-${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} restore-keys: plt-${{ runner.os }}-${{ hashFiles('.tool-versions') }} path: priv/plts - name: Create PLTs if: steps.plt_cache.outputs.cache-hit != 'true' run: mix dialyzer --plt - name: Save PLT cache id: plt_cache_save uses: actions/cache/save@v6 if: steps.plt_cache.outputs.cache-hit != 'true' with: key: plt-${{ runner.os }}-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} path: priv/plts - name: Run Dialyzer run: mix dialyzer --format github --format dialyxir
test: name: Test (${{ matrix.transport }}) runs-on: ubuntu-latest needs: build
strategy: fail-fast: false matrix: transport: [port, websocket] include: - transport: port mix_task: test - transport: websocket mix_task: test.websocket
steps: - uses: actions/checkout@v7.0.0 - name: Setup languages uses: jdx/mise-action@v4.2.0 - name: Install dependencies run: mix do deps.get, deps.compile - name: Install JS dependencies and browsers if: matrix.transport == 'port' run: mix setup - name: Run tests run: mix ${{ matrix.mix_task }} --warnings-as-errors