Skip to content

Commit

Permalink
fix: add timeout-minutes and FLOX_DISABLE_METRICS (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas authored Nov 21, 2024
1 parent 5c7f4e7 commit 77647da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ on:
schedule:
- cron: "0 0 * * *"

env:
FLOX_DISABLE_METRICS: "true"

jobs:

envs:
name: "Find environments"
runs-on: "ubuntu-latest"
timeout-minutes: 30

outputs:
envs_per_system: "${{ steps.envs.outputs.envs_per_system }}"
Expand Down Expand Up @@ -86,7 +89,6 @@ jobs:
test:
name: "Test '${{ matrix.example }}' example on '${{ matrix.system }}'"
runs-on: "ubuntu-latest"

timeout-minutes: 30

needs:
Expand Down Expand Up @@ -138,6 +140,7 @@ jobs:
containarize:
name: "Containarize '${{ matrix.example }}'"
runs-on: "ubuntu-latest"
timeout-minutes: 30

if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'

Expand All @@ -148,7 +151,6 @@ jobs:
env:
FLOX_BIN: "flox -vvv"

timeout-minutes: 30

permissions:
contents: "read"
Expand Down Expand Up @@ -189,6 +191,7 @@ jobs:
push:
name: "Sync '${{ matrix.example }}' manifest"
runs-on: "ubuntu-latest"
timeout-minutes: 30

if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'

Expand All @@ -201,8 +204,6 @@ jobs:
FLOX_REMOTE_OWNER: "flox"
FLOX_AUTH0_URL: "https://auth.flox.dev"

timeout-minutes: 30

strategy:
matrix:
include: ${{ fromJSON(needs.envs.outputs.envs_only ) }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
schedule:
- cron: "30 0 * * 1"

env:
FLOX_DISABLE_METRICS: "true"

jobs:

envs:
name: "Find environments"
runs-on: "ubuntu-latest"
timeout-minutes: 30

outputs:
envs: "${{ steps.envs.outputs.envs }}"
Expand Down Expand Up @@ -48,6 +52,7 @@ jobs:
upgrade:
name: "Upgrade '${{ matrix.example }}' manifest"
runs-on: "ubuntu-latest"
timeout-minutes: 30

needs:
- "envs"
Expand Down

0 comments on commit 77647da

Please sign in to comment.