Skip to content

Update container used for Semgrep scan #504

Update container used for Semgrep scan

Update container used for Semgrep scan #504

Workflow file for this run

name: Test
on:
pull_request: ~
push:
branches:
- main
permissions: read-all
jobs:
bare-action:
name: Bare action
runs-on: ubuntu-24.04
needs:
- unit
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install tooling
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3.0.2
- name: Run bare action
uses: ./
unit:
name: Unit (${{ matrix.runs-on }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install tooling
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3.0.2
- name: Install kcov (from package)
if: ${{ matrix.runs-on != 'ubuntu-24.04' }}
run: sudo apt-get install kcov
- name: Install kcov (from source)
if: ${{ matrix.runs-on == 'ubuntu-24.04' }}
run: |
sudo apt-get install binutils-dev libssl-dev libcurl4-openssl-dev libelf-dev libstdc++-12-dev zlib1g-dev libdw-dev libiberty-dev
cd /tmp/
git clone https://github.com/SimonKagstrom/kcov.git
cd ./kcov/
git checkout a39874f938ce13f7a65f253120d1ec946b349ffe # v43
mkdir build
cd ./build/
cmake ..
make
sudo make install
- name: Run unit tests
run: make coverage