Merge pull request #46 from CreatingNull/dependabot/github_actions/lu… #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- '.docs/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get CMake | |
uses: lukka/[email protected] | |
- name: Install Google Test Framework | |
run: | | |
git clone --depth 1 --branch v1.13.0 https://github.com/google/googletest | |
cd googletest/ | |
cmake CMakeCache.txt | |
make | |
echo "CPLUS_INCLUDE_PATH=${PWD}/googletest/include/" >> $GITHUB_ENV | |
echo "LIBRARY_PATH=${PWD}/googletest/" >> $GITHUB_ENV | |
- name: Build and Execute Tests | |
run: | | |
cd .tests/ | |
make | |
../src/NullPacketComms |