From 64e1cfcbbad9ed0370846341f591a530a433bbbc Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 27 Mar 2023 11:50:46 +0200 Subject: [PATCH] Test only with oldest OTP supported, newest stable and bleeding edge --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/runtime.yml | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ab0152ce..2bdec91d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - otp: ['20.0', '21.3', '24.3', '25', '26.0-rc1'] + otp: ['20.0', '25.3', '26.0-rc2'] runs-on: ubuntu-20.04 services: redis: @@ -38,7 +38,7 @@ jobs: - uses: actions/checkout@v3 - name: Test shell scripts - if: matrix.otp == 25 + if: matrix.otp == '25.3' run: | shellcheck test/ejabberd_SUITE_data/gencerts.sh shellcheck tools/captcha.sh @@ -46,7 +46,7 @@ jobs: shellcheck -x ejabberdctl.template - name: Get specific Erlang/OTP - if: matrix.otp != 25 + if: matrix.otp != '25.3' uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp }} @@ -124,7 +124,7 @@ jobs: key: ${{matrix.otp}}-${{hashFiles('rebar.config')}} - name: Download test logs - if: matrix.otp == 25 && github.repository == 'processone/ejabberd' + if: matrix.otp == '25.3' && github.repository == 'processone/ejabberd' continue-on-error: true run: | mkdir -p _build/test @@ -149,7 +149,7 @@ jobs: - run: make options - run: make xref - run: make dialyzer - if: matrix.otp != '26.0-rc1' + if: matrix.otp != '26.0-rc2' - name: Check Production Release run: | @@ -205,7 +205,7 @@ jobs: find logs/ -name exunit.log -exec cat '{}' ';' - name: Send to coveralls - if: matrix.otp == 25 + if: matrix.otp == '25.3' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index 4c059c97b..492048572 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -31,8 +31,11 @@ jobs: strategy: fail-fast: false matrix: - otp: ['19.3', '20.3', '24.3', '25'] + otp: ['20.3', '25.3', '26'] rebar: ['rebar', 'rebar3'] + exclude: + - otp: '26' + rebar: 'rebar' runs-on: ubuntu-latest container: image: erlang:${{ matrix.otp }}