Skip to content

changed just in the GUI GQN5 --> GQN6 for real life correspondance pu… #249

changed just in the GUI GQN5 --> GQN6 for real life correspondance pu…

changed just in the GUI GQN5 --> GQN6 for real life correspondance pu… #249

Workflow file for this run

name: Automatic Tests
on: push
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qt6-base-dev-tools libqt6serialport6-dev qt6-base-dev libqt6svg6-dev libqt5serialport5-dev libgtest-dev build-essential cmake libsqlite3-dev qt6-base-dev libgl1-mesa-dev libegl1-mesa-dev cmake qt6-httpserver-dev
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Create Test Authentication Files
run: |
echo "Creating Server/src/auth_keys.json..."
cat << 'EOF' > Server/src/auth_keys.json
[
{
"key": "ClientSecretKey1",
"accessRight": 3
},
{
"key": "ClientSecretKey2",
"accessRight": 3
}
]
EOF
echo "Creating GUI/src/.key..."
echo "ClientSecretKey1" > GUI/src/.key
echo "Authentication files created successfully."
- name: Configure and build project
run: |
mkdir build && cd build
cmake ..
cmake --build .
- name: Run tests
run: |
cd build
make test