8000 Update GitHub Actions · sunaoka/php-postgresql-errors@8c3f217 · GitHub
[go: up one dir, main page]

Skip to content

8000 Commit 8c3f217

Browse files
committed
Update GitHub Actions
1 parent 95303ca commit 8c3f217

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/generate.yaml

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: generate
1+
name: Generate PostgreSQL Error Codes
22

33
on:
44
schedule:
@@ -13,20 +13,20 @@ jobs:
1313
- name: Setup PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '8.2'
16+
php-version: '8.4'
1717

1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Generate
22-
run: make
21+
- name: Generate PostgreSQL Error Codes
22+
uses: nick-fields/retry@v3
23+
with:
24+
timeout_seconds: 60
25+
max_attempts: 3
26+
command: make
2327

24-
- name: Count changes
25-
id: changes
26-
run: |
27-
git add -N .
28-
git diff --name-only --exit-code
29-
continue-on-error: true
28+
- name: Syntax check
29+
run: php -l -n -d error_reporting=E_ALL ./src/PostgresError.php
3030

3131
- name: Create Pull Request
3232
uses: peter-evans/create-pull-request@v6
@@ -38,4 +38,3 @@ jobs:
3838
Error codes have been updated.
3939
4040
- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt
41-
if: steps.changes.outcome == 'failure'

.github/workflows/test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
uses: actions/checkout@v4
3838

3939
- name: Install dependencies
40-
run: composer install --quiet --no-ansi --prefer-dist --no-progress --no-interaction
40+
uses: nick-fields/retry@v3
41+
with:
42+
timeout_seconds: 60
43+
max_attempts: 3
44+
command: composer install --quiet --no-plugins --no-ansi --prefer-dist --no-progress --no-interaction
4145

4246
- name: Migrate phpunit XML configuration
4347
run: vendor/bin/phpunit --migrate-configuration || true

0 commit comments

Comments
 (0)
0