Skip to content

Commit

Permalink
Require user permissions check to run jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Dec 9, 2024
1 parent fba9d1d commit a90747a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: CI

on:
workflow_dispatch:
inputs:
run_integration_tests:
description: 'Run integration tests'
type: boolean
default: false
merge_group:
pull_request:
branches:
Expand All @@ -19,6 +13,7 @@ concurrency:

jobs:
formatting-linting:
needs: [check-permissions]
name: Formatting, linting & changeset checks
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }}
Expand Down Expand Up @@ -85,6 +80,7 @@ jobs:
retention-days: 5

unit-tests:
needs: [check-permissions]
name: Unit Tests
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }}
Expand Down Expand Up @@ -136,6 +132,7 @@ jobs:
retention-days: 5

integration-tests:
needs: [check-permissions]
name: Integration Tests
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_LONG && fromJSON(vars.TIMEOUT_MINUTES_LONG) || 15 }}
Expand Down

0 comments on commit a90747a

Please sign in to comment.