-
Notifications
You must be signed in to change notification settings - Fork 18
30 lines (25 loc) · 846 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
push:
branches: main
paths: ['**.cpp', '**.h', '**CMakeLists.txt']
pull_request:
branches: main
paths: ['**.cpp', '**.h', '**CMakeLists.txt']
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Start and join the Spigot Server
- name: Set up Minecraft testing environment
uses: nhatdongdang/mc-env-setup@v1
# Checkout the mcpp repository for building and testing
- name: Checkout mcpp
uses: actions/checkout@v4
# Build files using CMake
- name: Build file
run: cmake -Bbuild
# Run the test suite using ctest
- name: Run test suite
working-directory: ./build
run: make test_suite && ctest -R full -V