diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf7c3dc..88a3398 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,14 @@ on: release: types: [ published ] +permissions: + contents: read + pull-requests: write + jobs: build: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: php-version: @@ -21,7 +25,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -39,5 +43,10 @@ jobs: - name: Upload coverage results to Coveralls env: + COVERALLS_PARALLEL: true + COVERALLS_FLAG_NAME: ${{ matrix.php-version }}" + COVERALLS_SERVICE_NAME: github + COVERALLS_SERVICE_JOB_ID: "${{ github.run_id }}" + COVERALLS_SERVICE_NUMBER: "${{ github.workflow }}-${{ github.run_number }}" COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: php-coveralls --coverage_clover=build/logs/clover.xml -v