Skip to content

queue: implement empty() #33

queue: implement empty()

queue: implement empty() #33

Workflow file for this run

name: Tests and coverage
on:
push:
pull_request:
permissions:
statuses: write
jobs:
tests:
# XXX(arsen): stop doing this when GHAs ubuntu-latest is 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Get dependencies
run: |
export
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -y install python3-dev libxml2-dev libxslt1-dev \
cmake libyaml-dev libclang-dev llvm-dev \
libglib2.0-dev libjson-glib-dev flex \
ninja-build build-essential python3-pip \
git libgtest-dev
sudo pip3 install -U meson hotdoc gcovr
- name: Build
run: |
git clone --depth=1 https://github.com/managarm/frigg.git subprojects/frigg
meson --buildtype=debug -Dbuild_tests=true -Db_coverage=true build
cd build
ninja test
ninja coverage-html
ninja coverage-xml
ninja coverage-text
ninja coverage-sonarqube
- name: Upload coverage reports as artifacts
uses: actions/upload-artifact@v2
with:
name: coverages
path: |
build/meson-logs/coverage.xml
build/meson-logs/sonarqube.xml
build/meson-logs/coverage.txt
build/meson-logs/coveragereport/