Skip to content

Commit

Permalink
chore(ci): run code coverage job on ubuntu runner.
Browse files Browse the repository at this point in the history
Also, drop some useless git safe directory set.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Nov 27, 2024
1 parent 321e4aa commit a339e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ jobs:
with:
fetch-depth: 0

- name: Git safe directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Install deps ⛓️
run: |
sudo apt update
Expand Down Expand Up @@ -317,10 +313,6 @@ jobs:
run: |
sudo .github/install-deps.sh
- name: Git safe directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Build and test 🏗️🧪
env:
# This avoids random failures on CI.
Expand Down Expand Up @@ -360,10 +352,6 @@ jobs:
with:
fetch-depth: 0

- name: Git safe directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Build and test 🏗️🧪
run: |
mkdir -p build
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/test_coverage_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,16 @@ jobs:
unit-test-libsinsp-coverage:
name: unit-test-libsinsp-coverage 🧐
runs-on: 'ubuntu-22.04'
container:
image: debian:bookworm
steps:
- name: Install deps ⛓️
run: |
apt update && apt install -y --no-install-recommends ca-certificates \
cmake build-essential git clang llvm pkg-config autoconf automake \
libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev \
libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc \
libgtest-dev libprotobuf-dev linux-headers-amd64 \
gpg gpg-agent gcovr
- name: Checkout Libs ⤵️
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: Install deps ⛓️
run: |
.github/install-deps.sh
- name: Git safe directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
sudo apt install -y --no-install-recommends ca-certificates cmake build-essential git clang llvm pkg-config autoconf automake libtool libelf-dev wget libc-ares-dev libcurl4-openssl-dev libssl-dev libre2-dev libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc libgtest-dev libprotobuf-dev linux-headers-$(uname -r) gpg gpg-agent gcovr
sudo .github/install-deps.sh
- name: Build and test 🏗️🧪
run: |
Expand Down

0 comments on commit a339e9d

Please sign in to comment.