Skip to content

opt2: inline_suboperations #603

opt2: inline_suboperations

opt2: inline_suboperations #603

Workflow file for this run

name: "Code testing"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test_clang_format:
name: test clang format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install dependencies
run: sudo apt-get install gcc g++ libzmq3-dev cmake build-essential git
- name: configure
run: mkdir build && cd build && cmake ..
- name: clang-format
run: cmake --build build --target format
- name: check formatting
run: git diff --exit-code || ( >&2 echo "Please run 'make format' to fix these issues automatically." && false )
run_cmake_build:
name: run cmake build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install dependencies
run: sudo apt-get install gcc g++ libzmq3-dev cmake build-essential
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" ..
- name: build
run: cmake --build build
- name: test
run: ./build/ursadb_test
build_docker_image:
name: build docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: true
- name: Build image
uses: docker/build-push-action@v1
with:
push: false
e2etest:
name: run e2e tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install dependencies
run: sudo apt-get install gcc g++ libzmq3-dev cmake build-essential git python3 python3-pip
- name: install python dependencies
run: pip3 install pyzmq pytest
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" ..
- name: build
run: cd build && make ursadb ursadb_new
- name: test
run: python3 -m pytest