Be able to return {status, ...}-tuple when upgrading websocket. (#403) #1373
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: Build and test | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: ['27.3.4.11', '28.5', '29.0'] | |
| rebar3: ['3.25.0'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| rebar3-version: ${{matrix.rebar3}} | |
| version-type: strict | |
| - name: Cache rebar3 deps and build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/rebar3 | |
| _build | |
| key: ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}-${{hashFiles('rebar.lock')}} | |
| restore-keys: | | |
| ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}- | |
| - name: Compile | |
| run: rebar3 compile | |
| eunit: | |
| needs: [build] | |
| runs-on: ubuntu-24.04 | |
| name: EUnit Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: ['27.3.4.11', '28.5', '29.0'] | |
| rebar3: ['3.25.0'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| rebar3-version: ${{matrix.rebar3}} | |
| version-type: strict | |
| - name: Cache rebar3 deps and build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/rebar3 | |
| _build | |
| key: ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}-${{hashFiles('rebar.lock')}} | |
| restore-keys: | | |
| ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}- | |
| - name: Run eunit | |
| run: rebar3 eunit | |
| dialyzer: | |
| runs-on: ubuntu-24.04 | |
| name: Dialyzer Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: ['27.3.4.11', '28.5', '29.0'] | |
| rebar3: ['3.25.0'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| rebar3-version: ${{matrix.rebar3}} | |
| version-type: strict | |
| - name: Cache rebar3 deps and build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/rebar3 | |
| _build | |
| key: ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}-${{hashFiles('rebar.lock')}} | |
| restore-keys: | | |
| ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}- | |
| - name: Run dialyzer | |
| run: rebar3 dialyzer | |
| xref: | |
| runs-on: ubuntu-24.04 | |
| name: Xref Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: ['27.3.4.11', '28.5', '29.0'] | |
| rebar3: ['3.25.0'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| rebar3-version: ${{matrix.rebar3}} | |
| version-type: strict | |
| - name: Cache rebar3 deps and build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/rebar3 | |
| _build | |
| key: ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}-${{hashFiles('rebar.lock')}} | |
| restore-keys: | | |
| ${{runner.os}}-rebar3-${{matrix.otp}}-${{matrix.rebar3}}- | |
| - name: Run xref | |
| run: rebar3 xref | |
| - name: Generate docs | |
| run: rebar3 ex_doc | |
| nova_request_app: | |
| if: github.ref != 'refs/heads/master' | |
| needs: [build] | |
| uses: ./.github/workflows/run_nra.yml | |
| with: | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }} | |
| secrets: inherit |