This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
add password validation to registering user and updating #196
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: Build & Test | |
on: push | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Docker Compose | |
run: docker-compose up -d | |
- name: Configure CMake | |
run: | | |
docker run -v ${{github.workspace}}:/home/chatroom -w /home/chatroom wsekta/chatroom-builder \ | |
cmake -B build \ | |
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-16 \ | |
-DCODE_COVERAGE:BOOL=ON \ | |
-GNinja | |
- name: Build | |
run: | | |
docker run -v ${{github.workspace}}:/home/chatroom -w /home/chatroom wsekta/chatroom-builder \ | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Prepare environment files | |
run: mv apps/server/config config | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: | | |
docker run -v ${{github.workspace}}:/home/chatroom -w /home/chatroom/build wsekta/chatroom-builder \ | |
./../scripts/run-coverage.sh | |
- name: Codecov | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
token: ${{ secrets.CODECOVTOKEN }} | |
- name: Stop containers | |
if: always() | |
run: docker-compose down |