From 5f8d467292bdf136bfdd662c04c89bc90ab4947f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 18:23:11 +0100 Subject: [PATCH 1/5] Let's create a new problem! --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3cfaeeb..da5048c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,7 +36,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Composer dependencies - run: composer update --optimize-autoloader --no-progress --ansi --no-interaction + run: composer update --prefer-lowest --optimize-autoloader --no-progress --ansi --no-interaction - name: Build run: ./bin/unipoints build - name: Check PHP coding style From b91868e4a10f4ddf29276f9809dff85bd2741810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 18:29:43 +0100 Subject: [PATCH 2/5] Update tests.yml --- .github/workflows/tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da5048c..d4ae436 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,6 @@ jobs: matrix: os: - ubuntu-latest - - windows-latest php-version: - "8.1" - "8.2" @@ -31,7 +30,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - tools: php-cs-fixer:v3, composer:v2 + tools: composer:v2 coverage: none - name: Checkout uses: actions/checkout@v4 From b8330be927cfe5dd1121908c316c6ec3ba7a285c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 18:43:16 +0100 Subject: [PATCH 3/5] Update tests.yml --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d4ae436..2843889 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,6 +34,9 @@ jobs: coverage: none - name: Checkout uses: actions/checkout@v4 + - name: Test annotations + run: | + echo "::error file=bin/unipoints::PLEASE RUN bin/unipoints build" - name: Install Composer dependencies run: composer update --prefer-lowest --optimize-autoloader --no-progress --ansi --no-interaction - name: Build From 7f6c48e6444566fee46c78fb46bc1e5113ee5f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 19:09:43 +0100 Subject: [PATCH 4/5] Update tests.yml --- .github/workflows/tests.yml | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2843889..00ab47a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,43 +21,14 @@ jobs: os: - ubuntu-latest php-version: - - "8.1" - "8.2" - - "8.3" runs-on: ${{ matrix.os }} steps: - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: "shivammathur/setup-php@2.25.5" with: php-version: ${{ matrix.php-version }} - tools: composer:v2 - coverage: none + tools: "php-cs-fixer:v3, composer:v2" + coverage: "none" - name: Checkout uses: actions/checkout@v4 - - name: Test annotations - run: | - echo "::error file=bin/unipoints::PLEASE RUN bin/unipoints build" - - name: Install Composer dependencies - run: composer update --prefer-lowest --optimize-autoloader --no-progress --ansi --no-interaction - - name: Build - run: ./bin/unipoints build - - name: Check PHP coding style - if: startsWith(matrix.os, 'ubuntu') && matrix.php-version == '8.2' - run: composer run-script phpcs -- --ansi --no-interaction --dry-run --diff - - name: PHPUnit - run: composer run-script test -- --colors=always - - name: Check changes - id: check-changes - if: startsWith(matrix.os, 'ubuntu') && matrix.php-version == '8.2' && github.repository == 'mlocati/unipoints' && github.event_name == 'push' && github.ref == 'refs/heads/main' - run: | - if ! git diff --exit-code --name-status; then - echo "commit=yes" >>"$GITHUB_OUTPUT" - fi - - name: Push changes - if: steps.check-changes.outputs.commit == 'yes' - run: | - git config user.name 'Michele Locati' - git config user.email 'michele@locati.it' - git add --all - git commit -m 'Automatic update built assets' - git push From 4b5ec69d92e1a9a21ae8b1dcd682ae06e67dca5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 29 Oct 2023 19:12:15 +0100 Subject: [PATCH 5/5] v2 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 00ab47a..ec84588 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Setup PHP - uses: "shivammathur/setup-php@2.25.5" + uses: "shivammathur/setup-php@v2" with: php-version: ${{ matrix.php-version }} tools: "php-cs-fixer:v3, composer:v2"