From 5fbdb89f4de72b843dbf6ed7e888bd0d8edd3b51 Mon Sep 17 00:00:00 2001 From: Giulio Troccoli-Allard Date: Fri, 11 Oct 2024 16:35:28 +0100 Subject: [PATCH] fixup! Added roles and permissions --- .github/workflows/master.yml | 2 +- .github/workflows/pint.yml | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 9b1330a1..1f80366b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -9,7 +9,7 @@ jobs: matrix: os: ['ubuntu-latest', 'macos-latest'] php: ['8.3'] - uses: ./.github/workflows/pint.yml ./.github/workflows/test.yml + uses: ./.github/workflows/test.yml with: os: ${{ matrix.os }} php: ${{ matrix.php }} diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml index eb440373..5fa019eb 100644 --- a/.github/workflows/pint.yml +++ b/.github/workflows/pint.yml @@ -1,18 +1,14 @@ name: Code Style -on: - workflow_call: - inputs: - os: - required: true - type: string - php: - required: true - type: string +on: [ push ] + +env: + OPERATING_SYSTEM: ubuntu-latest + PHP_VERSION: 8.3 jobs: pint: - runs-on: ${{ inputs.os }} + runs-on: ${{ env.OPERATING_SYSTEM }} steps: - name: Checkout code @@ -21,7 +17,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ inputs.php }} + php-version: ${{ env.PHP_VERSION }} extensions: json, dom, curl, libxml, mbstring coverage: none