Skip to content

XPath, descendants, and a splash of Sentry #22

XPath, descendants, and a splash of Sentry

XPath, descendants, and a splash of Sentry #22

Workflow file for this run

name: gtest
on:
push:
branches:
- master
pull_request:
jobs:
gtest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout Sentry Native
uses: actions/checkout@v4
with:
repository: getsentry/sentry-native
path: sentry-native
- name: Apt dance
run: sudo apt-get update && sudo apt-get upgrade -yy
- name: Install libcurl
run: sudo apt-get install libcurl4-openssl-dev
- name: Make build directory
run: mkdir gtest-build
- name: CMake
run: cd gtest-build && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE-CXX_FLAGS=-Werror ..
- name: Download Coverity Scan
run: curl https://scan.coverity.com/download/linux64 -d 'token=${{ secrets.COVERITY_TOKEN }}&project=dwd%2Frapidxml' -o coverity.tar.gz
- name: Unpack Coverity
run: mkdir coverity && cd coverity && tar xf ../coverity.tar.gz && ln -s cov-analysis-* current
- name: Make
run: cd gtest-build && ../coverity/current/cov-build --dir cov-int make
- name: Run Tests
run: cd gtest-build && ./rapidxml-test
- name: Tar up Coverity output
run: cd gtest-build && tar czf ../cov-build-output.tar.gz cov-int
- name: Upload it
run: |
curl --form token=${{ secrets.COVERITY_TOKEN }} \
--form [email protected] \
--form [email protected] \
--form version="vX" \
--form description="RapidXML (Dave's Version)" \
https://scan.coverity.com/builds?project=dwd%2Frapidxml