2021-03-28 07:05:25 +02:00
|
|
|
name: Coverage Linux (without intl)
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2023-10-25 23:03:06 +02:00
|
|
|
paths:
|
|
|
|
- lib/**/*.js
|
|
|
|
- Makefile
|
|
|
|
- src/**/*.cc
|
|
|
|
- src/**/*.h
|
|
|
|
- test/**
|
|
|
|
- tools/gyp/**
|
|
|
|
- tools/test.py
|
|
|
|
- .github/workflows/coverage-linux-without-intl.yml
|
2024-07-17 19:28:22 +02:00
|
|
|
- codecov.yml
|
2021-03-28 07:05:25 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-10-25 23:03:06 +02:00
|
|
|
paths:
|
|
|
|
- lib/**/*.js
|
|
|
|
- Makefile
|
|
|
|
- src/**/*.cc
|
|
|
|
- src/**/*.h
|
|
|
|
- test/**
|
|
|
|
- tools/gyp/**
|
|
|
|
- tools/test.py
|
|
|
|
- .github/workflows/coverage-linux-without-intl.yml
|
2024-07-17 19:28:22 +02:00
|
|
|
- codecov.yml
|
2021-03-28 07:05:25 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
2024-04-03 08:24:57 +02:00
|
|
|
PYTHON_VERSION: '3.12'
|
2021-03-28 07:05:25 +02:00
|
|
|
FLAKY_TESTS: keep_retrying
|
2024-06-10 11:38:47 +02:00
|
|
|
CC: sccache clang
|
|
|
|
CXX: sccache clang++
|
|
|
|
SCCACHE_GHA_ENABLED: 'true'
|
2021-03-28 07:05:25 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
coverage-linux-without-intl:
|
|
|
|
if: github.event.pull_request.draft == false
|
2024-06-10 11:38:47 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2021-03-28 07:05:25 +02:00
|
|
|
steps:
|
2024-07-03 20:21:27 +02:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2021-03-28 07:05:25 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
2024-09-04 19:58:21 +02:00
|
|
|
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
|
2021-03-28 07:05:25 +02:00
|
|
|
with:
|
|
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
2024-06-06 00:33:40 +02:00
|
|
|
- name: Set up sccache
|
2024-07-03 20:21:57 +02:00
|
|
|
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af # v0.0.5
|
2024-06-06 00:33:40 +02:00
|
|
|
with:
|
2024-09-04 16:39:41 +02:00
|
|
|
version: v0.8.1
|
2021-03-28 07:05:25 +02:00
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Install gcovr
|
2024-07-27 23:52:23 +02:00
|
|
|
run: pip install gcovr==7.2
|
2021-03-28 07:05:25 +02:00
|
|
|
- name: Build
|
2024-01-25 20:17:28 +01:00
|
|
|
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage --without-intl"
|
2021-03-28 07:05:25 +02:00
|
|
|
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
|
|
|
|
# The cause is most likely coverage's use of the inspector.
|
|
|
|
- name: Test
|
2024-01-25 20:17:28 +01:00
|
|
|
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
|
2021-03-28 07:05:25 +02:00
|
|
|
- name: Report JS
|
|
|
|
run: npx c8 report --check-coverage
|
|
|
|
env:
|
|
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
|
|
- name: Report C++
|
2024-07-27 23:52:23 +02:00
|
|
|
run: gcovr --object-directory=out -v --filter src --xml -o ./coverage/coverage-cxx.xml --root=./ --gcov-executable="llvm-cov-18 gcov"
|
2021-03-28 07:05:25 +02:00
|
|
|
# Clean temporary output from gcov and c8, so that it's not uploaded:
|
|
|
|
- name: Clean tmp
|
|
|
|
run: rm -rf coverage/tmp && rm -rf out
|
|
|
|
- name: Upload
|
2024-07-03 22:23:15 +02:00
|
|
|
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
|
2021-03-28 07:05:25 +02:00
|
|
|
with:
|
|
|
|
directory: ./coverage
|
2024-03-08 21:21:18 +01:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|