Skip to content

Commit

Permalink
Add timeout-minutes to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Feb 28, 2024
1 parent ceaa113 commit dbe7d74
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Scala Build
outputs:
version: ${{ steps.save-version.outputs.version }}
Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
scala-lint:
needs: [build]
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Scala Lint
steps:
- uses: actions/checkout@v4
Expand All @@ -85,6 +87,7 @@ jobs:

node-lint:
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Node Lint
steps:
- uses: actions/checkout@v4
Expand All @@ -103,6 +106,7 @@ jobs:
scala-test:
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Scala Test
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -131,6 +135,7 @@ jobs:
node-test:
needs: [build, node-lint]
runs-on: ubuntu-22.04
timeout-minutes: 5
strategy:
matrix:
node: [ 18, 20, 21 ]
Expand Down Expand Up @@ -163,7 +168,6 @@ jobs:
native-build:
needs: [build]
if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
Expand All @@ -181,6 +185,9 @@ jobs:
- os: windows-2022
artifact_filename: recheck-win32-x64.exe
local_path: modules/recheck-cli/target/native-image/recheck.exe
runs-on: ${{ matrix.os }}
timeout-minutes: 5
name: Scala Build (Native Binary)
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -219,6 +226,7 @@ jobs:
needs: [build, scala-test]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Publish to Maven Central
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -254,6 +262,7 @@ jobs:
needs: [build, native-build, node-test]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Publish to NPM
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -325,6 +334,7 @@ jobs:
needs: [maven-release, npm-release]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Publish GitHub Release
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -369,6 +379,7 @@ jobs:
needs: [build]
if: github.ref_name == 'main'
runs-on: ubuntu-22.04
timeout-minutes: 5
name: Build website
steps:
- uses: actions/checkout@v4
Expand All @@ -393,14 +404,15 @@ jobs:

gh-pages-deploy:
needs: [gh-pages-build]
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
timeout-minutes: 5
name: Deploy to GitHub Pages
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit dbe7d74

Please sign in to comment.