source: .github/workflows/test.yaml @ 612b49d

Last change on this file since 612b49d was 612b49d, checked in by GitHub <noreply@…>, at 2023-04-16T03:18:07Z

configure: address ShellCheck reports and add ShellCheck job (#189)

  • Property mode set to 100644
File size: 986 bytes
Line 
1name: Tests
2
3on:
4  - push
5  - pull_request
6
7env:
8  PKG_CONFIG_PATH: $HOME/otr/usr/lib/pkgconfig/
9  LD_LIBRARY_PATH: $HOME/otr/usr/lib/
10
11jobs:
12  shellcheck:
13    runs-on: ubuntu-latest
14    steps:
15    - name: Checkout code
16      uses: actions/checkout@v3
17    - name: Run ShellCheck
18      uses: ludeeus/action-shellcheck@master
19  tests:
20    needs: shellcheck
21    runs-on: ubuntu-latest
22    steps:
23    - uses: actions/checkout@v3
24    - name: Install dependencies
25      run: |
26       sudo apt-get update && sudo apt-get -y install \
27           libevent-dev \
28           libpurple-dev \
29           check \
30           libpam0g-dev \
31           libldap2-dev \
32           fakeroot \
33           debhelper \
34           devscripts \
35           libotr5-dev \
36           libgnutls28-dev \
37           libjsonparser-dev
38    - name: Configure
39      run: ./configure --pam=1 --ldap=1
40    - name: Run testsuite
41      run: make check
42    - name: Build debian package
43      run: dpkg-buildpackage -uc -us -b
Note: See TracBrowser for help on using the repository browser.