Skip to content

Commit

Permalink
CI: Set OTP major version, and let it pick the latest minor one
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Apr 30, 2024
1 parent 8bd5493 commit ddaaf51
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
strategy:
fail-fast: false
matrix:
otp: ['19.3', '25.3', 26]
otp: [19, 25, 26]
runs-on: ubuntu-22.04
container:
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
if: matrix.otp < '20.3'
if: matrix.otp < 20
- uses: actions/checkout@v4
if: matrix.otp >= '20.3'
if: matrix.otp >= 20
- run: sed -i 's|applications, \[|applications, \[erl_tidy, |g' src/xmpp.app.src
if: matrix.otp >= '26'
if: matrix.otp >= 26
- run: make
if: matrix.otp >= '22.0'
if: matrix.otp >= 22
- run: REBAR=rebar3 ERLTIDY=true make
- run: REBAR=rebar3 make spec
- run: REBAR=rebar3 make xdata
Expand All @@ -31,9 +31,9 @@ jobs:
- run: rebar3 eunit -v
- run: make doap
- run: git config --global --add safe.directory /__w/xmpp/xmpp
if: matrix.otp == '25.3' && github.event_name == 'push'
if: matrix.otp == 25 && github.event_name == 'push'
- uses: stefanzweifel/git-auto-commit-action@v4
if: matrix.otp == '25.3' && github.event_name == 'push'
if: matrix.otp == 25 && github.event_name == 'push'
with:
add_options: '-u'
commit_message: Automatic changes "make spec xdata"
Expand Down

0 comments on commit ddaaf51

Please sign in to comment.