mirror of
https://github.com/openstreetmap/openstreetmap-website.git
synced 2025-07-20 18:27:11 +00:00
Add reasonable workflow time limits
This commit is contained in:
1
.github/workflows/danger.yml
vendored
1
.github/workflows/danger.yml
vendored
@ -11,6 +11,7 @@ permissions:
|
||||
jobs:
|
||||
danger:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
1
.github/workflows/docker.yml
vendored
1
.github/workflows/docker.yml
vendored
@ -9,6 +9,7 @@ jobs:
|
||||
test:
|
||||
name: Docker
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user