Skip to content

Commit

Permalink
Merge pull request #23 from technote-space/release/v0.2.0
Browse files Browse the repository at this point in the history
Release/v0.2.0
  • Loading branch information
technote-space committed Sep 10, 2019
2 parents a79588b + 680a21c commit a2f99da
Show file tree
Hide file tree
Showing 25 changed files with 352 additions and 186 deletions.
3 changes: 3 additions & 0 deletions .github/card-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Backlog:
'In progress':
- 'Status: In Progress'
15 changes: 15 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
javascript:
- '**/*.js'
typescript:
- '**/*.ts'
dependencies:
- '**/*.lock'
- '**/*-lock.json'

'Type: Testing':
- '**/tests/*'
- '**/test/*'
- '**/__tests__/*'

'Type: Documentation':
- '**/*.md'
26 changes: 0 additions & 26 deletions .github/main.workflow

This file was deleted.

4 changes: 2 additions & 2 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 30
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: "Status: More Information Needed"
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
Expand All @@ -10,4 +10,4 @@ closeComment: >
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
that we can investigate further.
6 changes: 3 additions & 3 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'Type: Feature': feature/*
'Type: Feature': ['feature/*', 'feat/*']
'Type: Bug': fix/*
'Type: Maintenance': patch/*
'Type: Maintenance': ['patch/*', 'chore/*']
'Type: Release': release/*
'Type: Refactoring': ['refactor/*', 'refactoring/*']
'Type: Documentation': ['docs/*', 'doc/*']
'Type: Documentation': ['docs/*', 'doc/*']
26 changes: 0 additions & 26 deletions .github/release-drafter.yml

This file was deleted.

123 changes: 123 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
on:
pull_request:
push:
branches:
- master
tags:
- "!*"

name: Build

jobs:
phpcs:
name: PHP Code Sniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
- name: Install Composer dependencies
run: composer prepare:php
- name: Check code style
run: composer phpcs
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
phpmd:
name: PHPMD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
- name: Install Composer dependencies
run: composer prepare:php
- name: Check code style
run: composer phpmd
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

phpunit:
name: PHPUnit
needs: [phpcs, phpmd]
runs-on: ubuntu-16.04
services:
mysql:
image: mysql
ports:
- 3306
strategy:
matrix:
php: ['7.0', '7.3', '5.6']
WP_VERSION: ['latest', 'trunk']
include:
- php: '7.3'
WP_VERSION: 'latest'
WP_MULTISITE: '1'
- php: '5.6'
WP_VERSION: 'trunk'
WP_MULTISITE: '1'
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- name: Switch PHP version
env:
PHP_VERSION: ${{ matrix.php }}
run: sudo ln -sf "/usr/bin/php$PHP_VERSION" /etc/alternatives/php
- name: Prepare setting
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
env:
CI: 1
TRAVIS_BUILD_DIR: ${{ github.workspace }}
WP_VERSION: ${{ matrix.WP_VERSION }}
ACTIVATE_POPULAR_PLUGINS: 1
IGNORE_GUTENBERG_VERSION: 1
- name: Run tests
run: bash travis-ci/bin/php/wp-test.sh
env:
CI: 1
DB_PASS: root
TRAVIS_BUILD_DIR: ${{ github.workspace }}
WP_VERSION: ${{ matrix.WP_VERSION }}
WP_MULTISITE: ${{ matrix.WP_MULTISITE }}
ACTIVATE_POPULAR_PLUGINS: 1
IGNORE_GUTENBERG_VERSION: 1
- uses: 8398a7/action-slack@v1
with:
type: failure
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()

slack:
name: Slack
needs: [phpunit]
runs-on: ubuntu-latest
steps:
- uses: 8398a7/action-slack@v1
with:
type: success
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
24 changes: 24 additions & 0 deletions .github/workflows/issue_opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: issues
name: Issue opened
jobs:
assign:
name: Assign issues to project
runs-on: ubuntu-latest
steps:
- name: Assign issues to project
if: github.event.action == 'opened'
uses: alex-page/github-project-automation-plus@master
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}

assignAuthor:
name: Assign author to issue
runs-on: ubuntu-latest
steps:
- name: Assign author to issue
if: github.event.action == 'opened'
uses: technote-space/assign-author@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/pr_opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on: pull_request
name: Pull Request opened
jobs:
assignToProject:
name: Assign PullRequest to Project
runs-on: ubuntu-latest
steps:
- name: Assign PullRequest to Project
if: github.event.action == 'opened'
uses: alex-page/github-project-automation-plus@master
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}

assignAuthor:
name: Assign author to PR
runs-on: ubuntu-latest
steps:
- name: Assign Author to PR
if: github.event.action == 'opened'
uses: technote-space/assign-author@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

addLabelsByBranch:
name: PR Labeler
runs-on: ubuntu-latest
steps:
- name: PR Labeler
if: github.event.action == 'opened'
uses: technote-fork/pr-labeler-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/pr_updated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: pull_request
name: Pull Request updated
jobs:
triage:
name: Pull Request Labeler
runs-on: ubuntu-latest
steps:
- name: Pull Request Labeler
uses: actions/labeler@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/project_card_moved.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: project_card
name: Project Card Event
jobs:
triage:
name: Auto card labeler
runs-on: ubuntu-latest
steps:
- name: Auto card labeler
uses: technote-space/auto-card-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: push
name: TOC Generator
jobs:
assignAuthor:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- name: TOC Generator
uses: technote-space/toc-generator@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit a2f99da

Please sign in to comment.