Skip to content

trial and error

trial and error #8

Workflow file for this run

name: Build Jittertrap
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
schedule:
- cron: "0 2 * * 1"
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-20.04]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install libnl-3-dev libnl-route-3-dev libnl-genl-3-dev libjansson-dev libwebsockets-dev libncurses5-dev libpcap-dev pkgconf
- name: make
run: CFLAGS="-fprofile-arcs -ftest-coverage" make
test:
name: Test on ${{ matrix.os }}
needs: [ build ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-20.04]
steps:
- name: Run tests
run: sudo CFLAGS="-fprofile-arcs -ftest-coverage" make test
- name: Setup Node (CodeClimate coverage action dependency)
uses: actions/setup-node@master
with:
node-version: '14'
- name: Do another Node.js thing (CodeClimate coverage action dependency)
run: yarn install --frozen-lockfile
- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
with:
coverageCommand: lcov -c -d server -d cli-client -d messages/ -o jittertrap.lcov
coverageLocations: ${{github.workspace}}/*.lcov:lcov