pcloudcc-lneely/.github/workflows/ci.yml

30 lines
581 B
YAML

name: CI
on:
push:
branches: [automated-testing]
pull_request:
branches: [automated-testing]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential
- name: Configure (cmake)
run: cmake -B build
- name: Build test binaries
run: cmake --build build
- name: Run tests
run: ctest --test-dir build --output-on-failure