ci: add timeout to all jobs

This commit is contained in:
Dundar Göc 2022-02-26 16:57:47 +01:00
parent 639ec044b7
commit 80c3d042ed

View File

@ -21,6 +21,7 @@ jobs:
lint: lint:
if: (github.event_name == 'pull_request' && github.base_ref == 'master' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/master') if: (github.event_name == 'pull_request' && github.base_ref == 'master' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/master')
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 10
env: env:
CC: gcc CC: gcc
steps: steps:
@ -208,6 +209,7 @@ jobs:
windows: windows:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 45
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
env: env:
DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }} DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }}