Skip to content

Release 1.8.1

Release 1.8.1 #130

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
otp: ['19.3', '25.3', 26]
runs-on: ubuntu-22.04
container:
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
if: matrix.otp < '20.3'
- uses: actions/checkout@v4
if: matrix.otp >= '20.3'
- run: sed -i 's|applications, \[|applications, \[erl_tidy, |g' src/xmpp.app.src
if: matrix.otp >= '26'
- run: make
if: matrix.otp >= '22.0'
- run: REBAR=rebar3 ERLTIDY=true make
- run: REBAR=rebar3 make spec
if: matrix.otp < '26'
- run: REBAR=rebar3 make xdata
- run: REBAR=rebar3 make
- run: REBAR=rebar3 make xref
- run: REBAR=rebar3 make dialyzer
- 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'
- uses: stefanzweifel/git-auto-commit-action@v4
if: matrix.otp == '25.3' && github.event_name == 'push'
with:
add_options: '-u'
commit_message: Automatic changes "make spec xdata"
cover:
name: Cover
needs: [tests]
runs-on: ubuntu-22.04
container:
image: erlang:26
steps:
- uses: actions/checkout@v3
- run: ./configure --enable-gcov
- run: REBAR=rebar3 make
- run: REBAR=rebar3 make spec
- run: REBAR=rebar3 make xdata
- run: REBAR=rebar3 make
- run: rebar3 eunit -v
#- run: pip install --user cpp-coveralls
#- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
- name: Send to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
COVERALLS=true rebar3 as test coveralls send
curl -v -k https://coveralls.io/webhook \
--header "Content-Type: application/json" \
--data '{"repo_name":"$GITHUB_REPOSITORY",
"repo_token":"$GITHUB_TOKEN",
"payload":{"build_num":$GITHUB_RUN_ID,
"status":"done"}}'