Skip to content

Commit c9489ec

Browse files
committed
Improve GH Actions section
1 parent cbb4bb5 commit c9489ec

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@ Create file `.github/workflows/db-migration-validation.yaml` in the application
7777
name: DB Migration Validation
7878

7979
on:
80-
push:
80+
push:
8181

8282
jobs:
83-
db-migration-validation:
84-
runs-on: ubuntu-latest
85-
steps:
86-
- uses: actions/checkout@v2
87-
- uses: shivammathur/setup-php@v2
88-
with:
89-
php-version: 7.4
90-
extensions: tokenizer
91-
coverage: none
92-
- name: Install PHP DB Migration Validator dependency
93-
run: composer require antonkomarev/php-db-migration-validator --no-interaction
94-
- name: Ensure all database migrations are irreversible
95-
run: vendor/bin/php-db-migration-validator --rule=irreversible ./database/migrations
83+
db-migration-validation:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@v2
87+
- uses: shivammathur/setup-php@v2
88+
with:
89+
php-version: 8.1
90+
extensions: tokenizer
91+
coverage: none
92+
- name: Install PHP DB Migration Validator dependency
93+
run: composer global require antonkomarev/php-db-migration-validator --no-interaction
94+
- name: Ensure all database migrations are irreversible
95+
run: php-db-migration-validator --rule=irreversible ./database/migrations
9696
```
9797
9898
### Command usage instructions

0 commit comments

Comments
 (0)