More compiler warnings, and sanitizers, in CMake builds #964
Workflow file for this run
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: Sync Gateway Replication Tests | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
- 'release/*' | |
pull_request: | |
branches: | |
- '**' | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
#### BUILD | |
- name: Create Build Environment | |
# Create a build directory, as our working directory for all subsequent commands | |
working-directory: ${{github.workspace}} | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
# "Note the current convention is to use the -S and -B options here to specify source | |
# and build directories, but this is only available with CMake 3.13 and higher. | |
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12" | |
working-directory: ${{github.workspace}}/build | |
run: cmake .. -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build . --config ${{ env.BUILD_TYPE }} | |
### START DOCKER CONTAINERS | |
- name: Start Docker containers | |
run: | | |
pushd Replicator/tests/data/docker | |
docker compose up --build -d | |
popd | |
- name: Wait for Sync Gateway up | |
timeout-minutes: 5 | |
run: | | |
until curl -sIkL -H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" --fail https://localhost:4985/scratch; do | |
printf '.' | |
sleep 10 | |
done | |
echo "SG is up" | |
until curl -sIkL -H "Authorization: Basic YWRtaW46cGFzc3dvcmQ=" --fail https://localhost:4885/scratch-30; do | |
printf '.' | |
sleep 10 | |
done | |
echo "SG Legacy is up" | |
#### TEST | |
- name: Run SG Tests | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: | | |
pushd LiteCore/tests | |
./CppTests -r quiet "[.SyncServerCollection]" | |
popd | |
- name: Run SG Legacy Tests | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: | | |
pushd LiteCore/tests | |
./CppTests -r quiet "[.SyncServer30]" | |
popd | |
- name: Stop Docker containers | |
if: always() | |
run: | | |
pushd Replicator/tests/data/docker | |
docker compose down | |
popd | |