Skip to content

Commit

Permalink
Add status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed May 24, 2023
1 parent 83aef48 commit d01fb84
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ] # OS. ubuntu-18.04 is also available.
php: [ '7.2',' '7.4', '8.0' ] # PHP versions to check.
php: [ '7.2', '7.4', '8.0' ] # PHP versions to check.
wp: [ 'latest' ] # WordPress version to check.
tools: [ composer ]

Expand Down Expand Up @@ -48,7 +48,10 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Start MySQL
run: sudo systemctl start mysql
run: |
sudo systemctl start mysql
mysql -h 127.0.0.1 --port 3306 -u root --password=root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
- name: Install WordPress
run: bash bin/install-wp-tests.sh wordpress root root 127.0.0.1:3306 ${{ matrix.wp }}
Expand Down Expand Up @@ -76,9 +79,17 @@ jobs:
- name: Check JS & CSS syntax
run: npm run lint

status-check:
name: Check Assets
needs: [ test, assets ]
runs-on: ubuntu-latest
steps:
- name: Status Check
run: echo "All Green!"

release:
name: Release Build for Composer
needs: [ test, assets ]
needs: [ status-check ]
if: contains(github.ref, 'tags/')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d01fb84

Please sign in to comment.