Release 1.0.24 #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| name: Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: [20, 25, 26, 27] | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: erlang:${{ matrix.otp }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Prepare libraries | |
| run: | | |
| apt-get -qq update | |
| apt-get -qq install libgd-dev libjpeg-dev libpng-dev libwebp-dev | |
| - run: ./configure | |
| - run: make | |
| if: matrix.otp >= 22 | |
| - run: REBAR=rebar3 make | |
| - run: REBAR=rebar3 make xref | |
| - run: REBAR=rebar3 make dialyzer | |
| - run: rebar3 eunit -v | |
| cover: | |
| name: Cover | |
| needs: [tests] | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: erlang:26 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Prepare libraries | |
| run: | | |
| apt-get -qq update | |
| apt-get -qq install libgd-dev libjpeg-dev libpng-dev libwebp-dev | |
| - run: ./configure --enable-gcov | |
| - 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"}}' |