Skip to content

Commit

Permalink
ci: cover openssl3 (#321)
Browse files Browse the repository at this point in the history
* ci(cover): openssl3

* ci: install valgrind for valgrind-check

[noci]
  • Loading branch information
qzhuyan authored Nov 20, 2024
1 parent d1eac4b commit 33505b5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ jobs:
chmod a+x rebar3
mkdir -p $HOME/bin/
mv rebar3 $HOME/bin/
- name: run sanitizer-check
- name: run check
run: |
export PATH=$PATH:$HOME/bin/
. /home/runner/OTP/default/activate
if [[ "valgrind-check" == ${{ matrix.check }} ]]; then
sudo apt install valgrind
fi
tools/run/bin/${{ matrix.check }} ${{ matrix.scope }}
- name: Archive logs
uses: actions/upload-artifact@v3
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ on: ["push", "pull_request"]
name: Test Coveralls

jobs:

build:
name: Build
run-cover:
name: Run Cover
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -19,6 +18,9 @@ jobs:
- false
arch:
- x86_64
openssl:
- openssl3
- openssl
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Expand All @@ -29,41 +31,53 @@ jobs:
rebar3-version: ${{ matrix.rebar3 }}

- name: Run cover
env:
QUICER_TLS_VER: ${{ matrix.openssl }}
run: |
sudo apt-get install lcov
export QUICER_TLS_VER
make cover
- name: Coveralls C
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-c-lcov
flag-name: run-c-lcov-${{ matrix.openssl }}
files: coverage/proper-lcov.info coverage/lcov.info
parallel: true
git-branch: ${{ github.ref_name }}
git-commit: ${{ github.sha }}

- name: Run cover with feature switches
env:
QUICER_TLS_VER: ${{ matrix.openssl }}
run: |
sudo apt-get install lcov
export QUICER_USE_TRUSTED_STORE=1
export QUICER_TLS_VER
make cover
- name: Coveralls C
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-c-lcov-feature
flag-name: run-c-lcov-feature-${{ matrix.openssl }}
files: coverage/proper-lcov.info coverage/lcov.info
parallel: true
git-branch: ${{ github.ref_name }}
git-commit: ${{ github.sha }}

- name: Coveralls Erl
env:
COVERALLS_FLAG_NAME: erlang-${{ matrix.openssl }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: rebar3 as test coveralls send

finalize:
needs: run-cover
name: finalize
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
Expand Down
3 changes: 2 additions & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
case {os:getenv("GITHUB_ACTIONS"), os:getenv("GITHUB_TOKEN")} of
{"true", Token} when is_list(Token) ->
FlagName = os:getenv("COVERALLS_FLAG_NAME", "erlang"),
CONFIG1 = [{coveralls_repo_token, Token},
{coveralls_service_number, os:getenv("GITHUB_RUN_ID")},
{coveralls_commit_sha, os:getenv("GITHUB_SHA")},
{coveralls_parallel, true},
{coveralls_flag_name, "erlang"},
{coveralls_flag_name, FlagName},
{coveralls_service_name, "github"} | CONFIG],
case os:getenv("GITHUB_EVENT_NAME") =:= "pull_request"
andalso string:tokens(os:getenv("GITHUB_REF"), "/") of
Expand Down

0 comments on commit 33505b5

Please sign in to comment.