source: .github/workflows/ci.yml @ 1fb3406

Last change on this file since 1fb3406 was 1fb3406, checked in by / <>, at 2021-03-31T10:42:19Z

workflow update

  • Property mode set to 100644
File size: 3.2 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
[50efbf4]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   
[a181ec1]35    - name: ask for help
[ef70f9f]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
[1fb3406]65    - name: jabber remove buddy
66      if: ${{ always() }}
67      run: |
68        ./.tests/setup_prosody.sh
69        ./.tests/setup_bitlbee.sh
70
71        python3 ./.tests/jabber_remove_buddy.py
72
73        ./.tests/cleanup_bitlbee.sh
74        ./.tests/cleanup_prosody.sh
75
[e14bdc67]76    - name: jabber send message
[ef70f9f]77      if: ${{ always() }}
[e14bdc67]78      run: |
79        ./.tests/setup_prosody.sh
80        ./.tests/setup_bitlbee.sh
81
82        python3 ./.tests/jabber_send_msg.py
83
84        ./.tests/cleanup_bitlbee.sh
85        ./.tests/cleanup_prosody.sh
86
87    - name: jabber rename buddy
[ef70f9f]88      if: ${{ always() }}
[e14bdc67]89      run: |
90        ./.tests/setup_prosody.sh
91        ./.tests/setup_bitlbee.sh
92
93        python3 ./.tests/jabber_rename_buddy.py
94
95        ./.tests/cleanup_bitlbee.sh
96        ./.tests/cleanup_prosody.sh
97
98    - name: jabber set status
[ef70f9f]99      if: ${{ always() }}
[e14bdc67]100      run: |
101        ./.tests/setup_prosody.sh
102        ./.tests/setup_bitlbee.sh
103
104        python3 ./.tests/jabber_status.py
105
106        ./.tests/cleanup_bitlbee.sh
107        ./.tests/cleanup_prosody.sh
108
[ef70f9f]109    - name: jabber go offline
110      if: ${{ always() }}
111      run: |
112        ./.tests/setup_prosody.sh
113        ./.tests/setup_bitlbee.sh
114
115        python3 ./.tests/jabber_offline.py
116
117        ./.tests/cleanup_bitlbee.sh
118        ./.tests/cleanup_prosody.sh
119
120    - name: jabber change default target
121      if: ${{ always() }}
122      run: |
123        ./.tests/setup_prosody.sh
124        ./.tests/setup_bitlbee.sh
125
126        python3 ./.tests/jabber_default_target.py
127
128        ./.tests/cleanup_bitlbee.sh
129        ./.tests/cleanup_prosody.sh
130
131    - name: jabber block buddy
132      if: ${{ always() }}
133      run: |
134        ./.tests/setup_prosody.sh
135        ./.tests/setup_bitlbee.sh
136
137        python3 ./.tests/jabber_block_buddy.py
138
139        ./.tests/cleanup_bitlbee.sh
140        ./.tests/cleanup_prosody.sh
141
[c05108c]142    - name: code coverage
[8d7cc55]143      if: ${{ always() }}
[c05108c]144      run: |
145        gcovr -r .
Note: See TracBrowser for help on using the repository browser.