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
|
2024-10-03 15:22:57 +02:00
|
|
|
- .nycrc
|
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
|
2024-10-03 15:22:57 +02:00
|
|
|
- .nycrc
|
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-11-03 20:03:33 +01:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2021-03-28 07:05:25 +02:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
2024-11-03 20:07:53 +01:00
|
|
|
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.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-10-04 20:33:37 +02:00
|
|
|
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
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-10-11 21:19:28 +02:00
|
|
|
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
|
2021-03-28 07:05:25 +02:00
|
|
|
with:
|
|
|
|
directory: ./coverage
|
2024-03-08 21:21:18 +01:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|