Skip to content

Commit

Permalink
ci: set timeout-minutes using ghatm
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jun 29, 2024
1 parent 3748c93 commit ffed5b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
permissions: {}
jobs:
default:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ permissions: {}
jobs:
path-filter:
# Get changed files to filter jobs
timeout-minutes: 30
outputs:
update-aqua-checksums: ${{steps.changes.outputs.update-aqua-checksums}}
renovate-config-validator: ${{steps.changes.outputs.renovate-config-validator}}
Expand All @@ -31,6 +32,7 @@ jobs:
status-check:
# This job is used for main branch's branch protection rule's status check.
# If all dependent jobs succeed or are skipped this job succeeds.
timeout-minutes: 30
runs-on: ubuntu-latest
needs:
- update-aqua-checksums
Expand Down Expand Up @@ -88,6 +90,7 @@ jobs:

ghalint:
# Validate GitHub Actions Workflows by ghalint.
timeout-minutes: 30
needs: path-filter
if: needs.path-filter.outputs.ghalint == 'true'
runs-on: ubuntu-latest
Expand All @@ -105,6 +108,7 @@ jobs:
GHALINT_LOG_COLOR: always

test-script:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -114,6 +118,7 @@ jobs:
- run: aqua -v

test-script-set-version:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -123,6 +128,7 @@ jobs:
- run: aqua -v

test-action-linux:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -140,6 +146,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

test-action-container:
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: golang:1.15.12
Expand All @@ -159,6 +166,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

test-action-macos:
timeout-minutes: 30
runs-on: macos-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -176,6 +184,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

test-action-windows-normal:
timeout-minutes: 30
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -202,6 +211,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

test-action-windows-working_dir:
timeout-minutes: 30
runs-on: windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down

0 comments on commit ffed5b8

Please sign in to comment.