source: .github/workflows/ci.yml @ ef70f9f

Last change on this file since ef70f9f was ef70f9f, checked in by / <>, at 2021-03-29T13:22:34Z

everything :D

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[90417ce]1name: CI
2
3on:
4  - pull_request
5  - push
6
7jobs:
8  tests:
9    runs-on: ubuntu-20.04
10
11    steps:
12    - uses: actions/checkout@v2
13    - name: Dependencies
14      run: |
15        sudo apt-get update -y
[c05108c]16        sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr
[7b1fd83]17        sudo prosodyctl stop
[90417ce]18
19    - name: build bitlbee
20      run: |
[2806b5e]21        ./configure --asan=1
[3f783cf]22        cat ./.tests/gcovflags >> Makefile.settings
[90417ce]23        make
[9634fba]24        sudo make install
[c6c05ad]25        touch ./debuglog
26   
[2806b5e]27    - name: talk to bitlbee
[90417ce]28      run: |
[cb80802]29        ./.tests/setup_bitlbee.sh
[2806b5e]30
31        python3 ./.tests/talk_to_bitlbee.py
32
33        ./.tests/cleanup_bitlbee.sh
[ef70f9f]34   
35    - name: help files
36      run: |
37        ./.tests/setup_bitlbee.sh
38
39        python3 ./.tests/help.py
40
41        ./.tests/cleanup_bitlbee.sh
[2806b5e]42
[6066443]43    - name: jabber connect
[ef70f9f]44      if: ${{ always() }}
[c2b9040]45      run: |
[c6c05ad]46        ./.tests/setup_prosody.sh
47        ./.tests/setup_bitlbee.sh
48
[c386390]49        python3 ./.tests/jabber_connect.py
[c05108c]50
[c6c05ad]51        ./.tests/cleanup_bitlbee.sh
52        ./.tests/cleanup_prosody.sh
[4b15a9a]53
[e14bdc67]54    - name: jabber add buddy
[ef70f9f]55      if: ${{ always() }}
[e14bdc67]56      run: |
57        ./.tests/setup_prosody.sh
58        ./.tests/setup_bitlbee.sh
59
60        python3 ./.tests/jabber_add_buddy.py
61
62        ./.tests/cleanup_bitlbee.sh
63        ./.tests/cleanup_prosody.sh
64
65    - name: jabber send message
[ef70f9f]66      if: ${{ always() }}
[e14bdc67]67      run: |
68        ./.tests/setup_prosody.sh
69        ./.tests/setup_bitlbee.sh
70
71        python3 ./.tests/jabber_send_msg.py
72
73        ./.tests/cleanup_bitlbee.sh
74        ./.tests/cleanup_prosody.sh
75
76    - name: jabber rename buddy
[ef70f9f]77      if: ${{ always() }}
[e14bdc67]78      run: |
79        ./.tests/setup_prosody.sh
80        ./.tests/setup_bitlbee.sh
81
82        python3 ./.tests/jabber_rename_buddy.py
83
84        ./.tests/cleanup_bitlbee.sh
85        ./.tests/cleanup_prosody.sh
86
87    - name: jabber set status
[ef70f9f]88      if: ${{ always() }}
[e14bdc67]89      run: |
90        ./.tests/setup_prosody.sh
91        ./.tests/setup_bitlbee.sh
92
93        python3 ./.tests/jabber_status.py
94
95        ./.tests/cleanup_bitlbee.sh
96        ./.tests/cleanup_prosody.sh
97
[ef70f9f]98    - name: jabber go offline
99      if: ${{ always() }}
100      run: |
101        ./.tests/setup_prosody.sh
102        ./.tests/setup_bitlbee.sh
103
104        python3 ./.tests/jabber_offline.py
105
106        ./.tests/cleanup_bitlbee.sh
107        ./.tests/cleanup_prosody.sh
108
109    - name: jabber change default target
110      if: ${{ always() }}
111      run: |
112        ./.tests/setup_prosody.sh
113        ./.tests/setup_bitlbee.sh
114
115        python3 ./.tests/jabber_default_target.py
116
117        ./.tests/cleanup_bitlbee.sh
118        ./.tests/cleanup_prosody.sh
119
120    - name: jabber block buddy
121      if: ${{ always() }}
122      run: |
123        ./.tests/setup_prosody.sh
124        ./.tests/setup_bitlbee.sh
125
126        python3 ./.tests/jabber_block_buddy.py
127
128        ./.tests/cleanup_bitlbee.sh
129        ./.tests/cleanup_prosody.sh
130
[c05108c]131    - name: code coverage
[8d7cc55]132      if: ${{ always() }}
[c05108c]133      run: |
134        gcovr -r .
Note: See TracBrowser for help on using the repository browser.