From bde4e2f507807a1f689cf2c931a05e7dcd84d1e5 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Mon, 30 Jun 2025 21:45:35 +0200 Subject: [PATCH] Add reasonable workflow time limits --- .github/workflows/danger.yml | 1 + .github/workflows/docker.yml | 1 + .github/workflows/lint.yml | 5 +++++ .github/workflows/tests.yml | 3 +++ 4 files changed, 10 insertions(+) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 8c6680bdc..6d7621b16 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -11,6 +11,7 @@ permissions: jobs: danger: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4cf099637..2a90664a0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,7 @@ jobs: test: name: Docker runs-on: ubuntu-latest + timeout-minutes: 20 steps: - name: Checkout source uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 099d0abf8..092de794d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,7 @@ jobs: rubocop: name: RuboCop runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 @@ -25,6 +26,7 @@ jobs: erblint: name: ERB Lint runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 @@ -39,6 +41,7 @@ jobs: eslint: name: ESLint runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 @@ -61,6 +64,7 @@ jobs: brakeman: name: Brakeman runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 @@ -77,6 +81,7 @@ jobs: RAILS_ENV: test name: Rails Annotate Models runs-on: ubuntu-22.04 + timeout-minutes: 10 steps: - name: Check out code uses: actions/checkout@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2c2f3c88f..cc06c48c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,7 @@ jobs: env: RAILS_ENV: test OPENSTREETMAP_MEMCACHE_SERVERS: 127.0.0.1 + timeout-minutes: 20 steps: - name: Checkout source uses: actions/checkout@v4 @@ -55,6 +56,7 @@ jobs: run: bundle exec i18n export - name: Compile assets run: bundle exec rails assets:precompile + timeout-minutes: 10 - name: Create tmp/pids directory run: mkdir -p tmp/pids - name: Run tests @@ -79,6 +81,7 @@ jobs: name: Finalise needs: test runs-on: ubuntu-latest + timeout-minutes: 1 steps: - name: Report completion to Coveralls uses: coverallsapp/github-action@v2.3.6 -- 2.39.5