-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from rokka-io/feat/remove-rokka-hashes
feat(): Remove rokka hashes
- Loading branch information
Showing
27 changed files
with
13,741 additions
and
4,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
name: Lint Test Deploy | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
composer install | ||
- name: Run linter | ||
run: | | ||
npm run lint | ||
composer lint | ||
tests: | ||
name: Tests | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
WP_VERSION: ${{ matrix.wp-versions }} | ||
|
||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
ports: | ||
- 3306 | ||
env: | ||
MYSQL_DATABASE: wordpress_test | ||
MYSQL_ROOT_PASSWORD: root | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
strategy: | ||
matrix: | ||
php-versions: [ | ||
'5.6', | ||
'7.0', | ||
'7.1', | ||
'7.2', | ||
'7.3' | ||
] | ||
wp-versions: [ | ||
'4.0', # Minimum required version | ||
'4.4', # Introduction of Responsive Images | ||
'4.7', # Introduction of REST API | ||
'4.9.18', # Last 4.x version | ||
'5.0', # Introduction of Gutenberg | ||
'5.3', # Changes in generating srcset | ||
'latest' | ||
] | ||
exclude: # exclude PHP >= 7 and WP 4.0 combinations because of PHP Fatal error: 'break' not in the 'loop' or 'switch' context | ||
- php-versions: 7.0 | ||
wp-versions: 4.0 | ||
- php-versions: 7.1 | ||
wp-versions: 4.0 | ||
- php-versions: 7.2 | ||
wp-versions: 4.0 | ||
- php-versions: 7.3 | ||
wp-versions: 4.0 | ||
- php-versions: 7.4 | ||
wp-versions: 4.0 | ||
- php-versions: 7.3 | ||
wp-versions: 4.4 | ||
- php-versions: 7.3 | ||
wp-versions: 4.7 | ||
- php-versions: 7.3 | ||
wp-versions: 4.9.18 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mysql | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
composer install | ||
- name: Setup WordPress | ||
run: scripts/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }} $WP_VERSION | ||
|
||
- name: Running PHP tests | ||
run: composer test | ||
|
||
deploy-dry-run: | ||
name: '[DRY RUN] Deploy' | ||
|
||
# only run on master but not tags | ||
if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }} | ||
|
||
needs: [ lint, tests ] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.3 | ||
|
||
- shell: bash | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
run: | | ||
DRYRUN=true scripts/deploy-wp-plugin.sh | ||
deploy: | ||
name: Deploy | ||
|
||
# only run on tags | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
needs: [ lint, tests ] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
|
||
- shell: bash | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
run: | | ||
scripts/deploy-wp-plugin.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.