Skip to content

Commit

Permalink
Merge pull request #40 from rokka-io/feat/remove-rokka-hashes
Browse files Browse the repository at this point in the history
feat(): Remove rokka hashes
  • Loading branch information
tschortsch authored Sep 22, 2021
2 parents 5d2823b + 130af47 commit f4d35e6
Show file tree
Hide file tree
Showing 27 changed files with 13,741 additions and 4,196 deletions.
154 changes: 154 additions & 0 deletions .github/workflows/lint-test-deploy.yml
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules/
/bin/
/composer.phar
/.cache
/assets/dist/
/languages/*.mo
/assets/dist/*.map
/release

.parcel-cache/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rokka integration plugin for WordPress

[![Build Status](https://travis-ci.org/rokka-io/rokka-wordpress-plugin.svg?branch=master)](https://travis-ci.org/rokka-io/rokka-wordpress-plugin)
[![Build Status](https://github.com/rokka-io/rokka-wordpress-plugin/workflows/Lint%20Test%20Deploy/badge.svg?branch=master)](https://github.com/rokka-io/rokka-wordpress-plugin/actions?query=workflow%3A%22Lint+Test+Deploy%22+branch%3Amaster)

WordPress plugin to integrate the [rokka.io](https://rokka.io) image service.

Expand All @@ -21,7 +21,7 @@ Free account plans are available. Just install the plugin, register and use it.

### Requirements

* Node.js >=10.x (https://nodejs.org/)
* Node.js >= 16 (https://nodejs.org/)
* gettext (https://www.gnu.org/software/gettext/)
* WordPress >= 4.0
* PHP >= 5.6
Expand Down
2 changes: 2 additions & 0 deletions assets/dist/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/dist/rokka-subject-area.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/dist/settings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f4d35e6

Please sign in to comment.