Skip to content

Commit

Permalink
frontend test in cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
pprajapa-42 committed Oct 17, 2024
1 parent 5ba4e7b commit c9fd6a9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build_and_push_backend_image"
# This workflow contains a single job called "test_backend"
test_backend:
runs-on: ubuntu-latest
steps:
Expand All @@ -37,6 +37,29 @@ jobs:
run: |
pytest
# This workflow contains a single job called "test_frontend"
test_frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
recursive: true

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools
- name: Build and run tests
run: |
mkdir -p build
cd build
cmake ../tq_frontend/tests
make
ctest --output-on-failure
build_and_push_backend_image:
needs: test_backend
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,7 +91,7 @@ jobs:
# This workflow contains a single job called "build_and_push_frontend_web_image"
build_and_push_frontend_web_image:
# The type of runner that the job will run on
needs: test_frontend
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down Expand Up @@ -98,7 +121,7 @@ jobs:
# This workflow contains a single job called "build_and_push_frontend_desktop_image"
build_and_push_frontend_desktop_image:
# The type of runner that the job will run on
needs: test_frontend
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down
2 changes: 1 addition & 1 deletion tq_frontend

0 comments on commit c9fd6a9

Please sign in to comment.