Skip to content

Commit 33505b5

Browse files
authored
ci: cover openssl3 (#321)
* ci(cover): openssl3 * ci: install valgrind for valgrind-check [noci]
1 parent d1eac4b commit 33505b5

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

.github/workflows/asan.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ jobs:
3636
chmod a+x rebar3
3737
mkdir -p $HOME/bin/
3838
mv rebar3 $HOME/bin/
39-
- name: run sanitizer-check
39+
- name: run check
4040
run: |
4141
export PATH=$PATH:$HOME/bin/
4242
. /home/runner/OTP/default/activate
43+
44+
if [[ "valgrind-check" == ${{ matrix.check }} ]]; then
45+
sudo apt install valgrind
46+
fi
47+
4348
tools/run/bin/${{ matrix.check }} ${{ matrix.scope }}
4449
- name: Archive logs
4550
uses: actions/upload-artifact@v3

.github/workflows/cover.yaml

+19-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ on: ["push", "pull_request"]
33
name: Test Coveralls
44

55
jobs:
6-
7-
build:
8-
name: Build
6+
run-cover:
7+
name: Run Cover
98
runs-on: ubuntu-latest
109
strategy:
1110
matrix:
@@ -19,6 +18,9 @@ jobs:
1918
- false
2019
arch:
2120
- x86_64
21+
openssl:
22+
- openssl3
23+
- openssl
2224
steps:
2325
- name: Checkout
2426
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@@ -29,41 +31,53 @@ jobs:
2931
rebar3-version: ${{ matrix.rebar3 }}
3032

3133
- name: Run cover
34+
env:
35+
QUICER_TLS_VER: ${{ matrix.openssl }}
3236
run: |
3337
sudo apt-get install lcov
38+
export QUICER_TLS_VER
3439
make cover
3540
3641
- name: Coveralls C
3742
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
3843
with:
3944
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
flag-name: run-c-lcov
45+
flag-name: run-c-lcov-${{ matrix.openssl }}
4146
files: coverage/proper-lcov.info coverage/lcov.info
4247
parallel: true
4348
git-branch: ${{ github.ref_name }}
4449
git-commit: ${{ github.sha }}
4550

4651
- name: Run cover with feature switches
52+
env:
53+
QUICER_TLS_VER: ${{ matrix.openssl }}
4754
run: |
4855
sudo apt-get install lcov
4956
export QUICER_USE_TRUSTED_STORE=1
57+
export QUICER_TLS_VER
5058
make cover
5159
5260
- name: Coveralls C
5361
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
5462
with:
5563
github-token: ${{ secrets.GITHUB_TOKEN }}
56-
flag-name: run-c-lcov-feature
64+
flag-name: run-c-lcov-feature-${{ matrix.openssl }}
5765
files: coverage/proper-lcov.info coverage/lcov.info
5866
parallel: true
5967
git-branch: ${{ github.ref_name }}
6068
git-commit: ${{ github.sha }}
6169

6270
- name: Coveralls Erl
6371
env:
72+
COVERALLS_FLAG_NAME: erlang-${{ matrix.openssl }}
6473
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6574
run: rebar3 as test coveralls send
6675

76+
finalize:
77+
needs: run-cover
78+
name: finalize
79+
runs-on: ubuntu-latest
80+
steps:
6781
- name: Coveralls Finished
6882
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
6983
with:

rebar.config.script

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
case {os:getenv("GITHUB_ACTIONS"), os:getenv("GITHUB_TOKEN")} of
22
{"true", Token} when is_list(Token) ->
3+
FlagName = os:getenv("COVERALLS_FLAG_NAME", "erlang"),
34
CONFIG1 = [{coveralls_repo_token, Token},
45
{coveralls_service_number, os:getenv("GITHUB_RUN_ID")},
56
{coveralls_commit_sha, os:getenv("GITHUB_SHA")},
67
{coveralls_parallel, true},
7-
{coveralls_flag_name, "erlang"},
8+
{coveralls_flag_name, FlagName},
89
{coveralls_service_name, "github"} | CONFIG],
910
case os:getenv("GITHUB_EVENT_NAME") =:= "pull_request"
1011
andalso string:tokens(os:getenv("GITHUB_REF"), "/") of

0 commit comments

Comments
 (0)