diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index f07d2553669af..57de0a519e0cf 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -12,11 +12,11 @@ on: branches: - master paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*'] - pull_request: + pull_request_target: types: [opened, synchronize, reopened] paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*'] schedule: - - cron: '0 0 * * *' + - cron: '2 4 * * *' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -50,6 +50,18 @@ jobs: with: fetch-depth: 0 + - name: Verify server deps + id: verify_server_deps + run: | + cd examples/server + ./deps.sh + not_ignored_files="$(git ls-files --others)" + if [ -n "${not_ignored_files}" ]; then + echo "Repository is dirty or server deps are not built as expected" + echo "${not_ignored_files}" + exit 1 + fi + - name: Dependencies id: depends run: |