-
Notifications
You must be signed in to change notification settings - Fork 95
51 lines (48 loc) · 1.64 KB
/
Copy pathci.yml
File metadata and controls
51 lines (48 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on: [push, pull_request]
jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
otp: [25, 26, 27, 28, 29]
runs-on: ubuntu-24.04
container:
image: public.ecr.aws/docker/library/erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v6
- run: sed -i 's|applications, \[|applications, \[erl_tidy, |g' src/xmpp.app.src
if: matrix.otp >= 26
- run: ./configure --enable-gcov
- run: make
if: matrix.otp >= 22
- run: REBAR=rebar3 ERLTIDY=true make
- run: REBAR=rebar3 make spec
- 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 == 28 && github.event_name == 'push'
- uses: stefanzweifel/git-auto-commit-action@v7
if: matrix.otp == 28 && github.event_name == 'push'
with:
add_options: '-u'
file_pattern: 'include/*.hrl src/*.erl'
commit_message: Automatic changes "make spec xdata"
- run: rebar3 eunit -v
- name: Send to Coveralls
if: matrix.otp == 28
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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"}}'