Skip to content

cleaned readme (#128) #68

cleaned readme (#128)

cleaned readme (#128) #68

Workflow file for this run

name: Run Tests
on:
push:
branches: [master, staging]
pull_request:
branches: [master, staging]
jobs:
doctests:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- macos-11.0
- windows-2019
include:
- os: windows-2019
cmake-generator: -G "Visual Studio 16 2019" -A x64
cmake-install: "choco install -y cmake"
dependencies: |
choco install -y openssl
choco install -y visualstudio2017-workload-vctools
choco upgrade -y visualstudio2017-workload-vctools
make: msbuild countly-tests.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Release && .\Release\countly-tests.exe
- os: macos-11.0
cmake-install: "brew install cmake"
dependencies: "brew install openssl"
make: make ./countly-tests && ./countly-tests
- os: ubuntu-20.04
cmake-install: "sudo apt-get update && sudo apt-get install -y cmake"
dependencies: "sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev"
make: make ./countly-tests && ./countly-tests
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Update submodules
run: git submodule update --init --recursive
- name: Install CMake
run: ${{ matrix.cmake-install }}
- name: Install dependencies
run: ${{ matrix.dependencies }}
- name: Set up MSVC
if: matrix.os == 'windows-2019'
uses: microsoft/setup-msbuild@v1
- name: Build and run tests
run: |
cmake -DCOUNTLY_BUILD_TESTS=1 -B build . ${{ matrix.cmake-generator }}
cd build
${{ matrix.make }}