mirror of
https://github.com/kmod-project/kmod.git
synced 2026-01-31 03:45:37 +00:00
Bumps the all-actions group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `github/codeql-action` from 3.27.1 to 3.28.10 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](4f3212b617...b56ba49b26) Updates `codecov/codecov-action` from 4.6.0 to 5.4.0 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](b9fd7d16f6...0565863a31) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions ... Signed-off-by: dependabot[bot] <support@github.com> Link: https://github.com/kmod-project/kmod/pull/302 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
# SPDX-FileCopyrightText: 2024 Emil Velikov <emil.l.velikov@gmail.com>
|
|
# SPDX-FileCopyrightText: 2024 Lucas De Marchi <lucas.de.marchi@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
name: Code Coverage
|
|
|
|
on:
|
|
push:
|
|
branches: [master, ci-test]
|
|
pull_request:
|
|
branches: [master]
|
|
schedule:
|
|
- cron: "30 2 * * 0"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
container:
|
|
- name: 'ubuntu:24.04'
|
|
meson_setup: '-D b_sanitize=none -D b_coverage=true'
|
|
|
|
container:
|
|
image: ${{ matrix.container.name }}
|
|
|
|
steps:
|
|
- name: Sparse checkout the local actions
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
sparse-checkout: .github
|
|
|
|
- uses: ./.github/actions/setup-ubuntu
|
|
if: ${{ startsWith(matrix.container.name, 'ubuntu') }}
|
|
|
|
- name: Checkout the whole project
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set the environment
|
|
run: |
|
|
# The second checkout above claims to set safe.directory, yet it
|
|
# doesn't quite work. Perhaps our double/sparse checkout is to blame?
|
|
git config --global --add safe.directory '*'
|
|
|
|
.github/print-kdir.sh >> "$GITHUB_ENV"
|
|
|
|
- name: Build
|
|
run: |
|
|
mkdir build && cd build
|
|
meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..
|
|
meson compile
|
|
meson test
|
|
ninja coverage-xml
|
|
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: build/meson-logs/coverage.xml
|