From fa14b9be355ddceac23ad187f9d94af015f8d5a3 Mon Sep 17 00:00:00 2001 From: sunaoka Date: Thu, 12 Dec 2024 18:55:03 +0900 Subject: [PATCH 1/4] Update GitHub Actions --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d19064..ad8aa76 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} env: - latest_php: 8.3 + latest_php: 8.4 strategy: fail-fast: false From 95303ca4ff38f4d5184b79785eb5688f3f4b5def Mon Sep 17 00:00:00 2001 From: sunaoka Date: Thu, 16 Jan 2025 09:25:44 +0900 Subject: [PATCH 2/4] Renew license year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index a907a5d..4f46ec2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2021 Norifumi SUNAOKA +Copyright (c) 2020-2025 Norifumi SUNAOKA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 8c3f2177380a5e4fdd476fbaf528d66b82da206e Mon Sep 17 00:00:00 2001 From: sunaoka Date: Thu, 16 Jan 2025 09:25:57 +0900 Subject: [PATCH 3/4] Update GitHub Actions --- .github/workflows/generate.yaml | 21 ++++++++++----------- .github/workflows/test.yml | 6 +++++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 78f4a55..65b8cd6 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -1,4 +1,4 @@ -name: generate +name: Generate PostgreSQL Error Codes on: schedule: @@ -13,20 +13,20 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.2' + php-version: '8.4' - name: Checkout uses: actions/checkout@v4 - - name: Generate - run: make + - name: Generate PostgreSQL Error Codes + uses: nick-fields/retry@v3 + with: + timeout_seconds: 60 + max_attempts: 3 + command: make - - name: Count changes - id: changes - run: | - git add -N . - git diff --name-only --exit-code - continue-on-error: true + - name: Syntax check + run: php -l -n -d error_reporting=E_ALL ./src/PostgresError.php - name: Create Pull Request uses: peter-evans/create-pull-request@v6 @@ -38,4 +38,3 @@ jobs: Error codes have been updated. - https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt - if: steps.changes.outcome == 'failure' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad8aa76..196c8bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,11 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - run: composer install --quiet --no-ansi --prefer-dist --no-progress --no-interaction + uses: nick-fields/retry@v3 + with: + timeout_seconds: 60 + max_attempts: 3 + command: composer install --quiet --no-plugins --no-ansi --prefer-dist --no-progress --no-interaction - name: Migrate phpunit XML configuration run: vendor/bin/phpunit --migrate-configuration || true From d765e920e8bb39cbe83b775ebb0e32ac50a9d928 Mon Sep 17 00:00:00 2001 From: sunaoka Date: Thu, 16 Jan 2025 09:26:16 +0900 Subject: [PATCH 4/4] Update phpunit.xml --- phpunit.xml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 317ab46..16e7d4b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,20 +1,13 @@ - - ./tests + ./tests