Help with gitlab-ci.yml file

I am new with all git related things. I made this yml file to compile a Qt project.
the issue is i can’t get the dependencies to install.

image: ubuntu:bionic

cache:
  key: apt-cache
  paths:
  - apt-cache/


before_script:
  - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
  - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y qt5-qmake qtbase5-dev qttools5-dev qtdbustest-runner qtchooser g++ build-essential
  - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y dbus-test-runner lcov gcovr


build_amd64:
  stage: build
  script:
    - export QT_SELECT=qt5
    - qmake -project
    - qmake libcprime.pro
    - make
    - make check

Processing triggers for libc-bin (2.27-3ubuntu1) ...
$ export QT_SELECT=qt5
$ qmake -project
$ qmake libcprime.pro
Info: creating stash file /builds/cubocore/libcprime/.qmake.stash
$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o applicationdialog.o cprime/applicationdialog.cpp
cprime/applicationdialog.cpp:29:10: fatal error: QWidget: No such file or directory
 #include <QWidget>
          ^~~~~~~~~
compilation terminated.
Makefile:540: recipe for target 'applicationdialog.o' failed
make: *** [applicationdialog.o] Error 1
ERROR: Job failed: exit code 1

Please help.

Try add to libcprime.pro string
QT += widgets

image: debian:buster

cache:
key: apt-cache
paths:
- apt-cache/

before_script:
- apt-get update -yq && apt-get install -y qt5-qmake qttools5-dev qtchooser g++ build-essential git python3 sudo
- apt-get update -yq && apt-get install -y libarchive-dev liblzma-dev libbz2-dev zlib1g-dev liblz-dev lzop
- apt-get update -yq && apt-get install -y libqt5x11extras5-dev qtmultimedia5-dev qtwebengine5-dev libqt5webchannel5-dev qtbase5-dev libqt5svg5-dev
- apt-get update -yq && apt-get install -y libqtav-dev libqtermwidget5-0-dev libxrender-dev libxcomposite-dev libx11-dev libxdamage-dev libzen-dev libmediainfo-dev libxtst-dev zlib1g-dev libxcb-util0-dev libxcb-damage0-dev

build_amd64:
stage: build
script:
- ./update-all
- ./compile