Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit dd4740c

Browse files
Merge pull request #239 from technote-space/release/v2.2.2
Release/v2.2.2
2 parents c98a2bb + f75f06d commit dd4740c

19 files changed

+1267
-1218
lines changed

.github/labeler.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ typescript:
44
- '**/*.ts'
55
php:
66
- '**/*.php'
7-
dependencies:
8-
- '**/*.lock'
9-
- '**/*-lock.json'
107

118
'Type: Testing':
129
- '**/tests/*'
@@ -15,3 +12,8 @@ dependencies:
1512

1613
'Type: Documentation':
1714
- '**/*.md'
15+
16+
'Type: CI/CD':
17+
- '.github/workflows/*.yml'
18+
- '.circleci/*'
19+
- '.travis.yml'

.github/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ categories:
66
labels:
77
- 'Type: Feature'
88
- 'Type: Refactoring'
9+
- 'Type: CI/CD'
910
- title: ':bug: Bug Fixes'
1011
labels:
1112
- 'Type: Bug'
@@ -22,6 +23,8 @@ categories:
2223
- title: ':sparkles: All Changes'
2324
labels:
2425
- 'Type: Release'
26+
exclude-lables:
27+
- 'dependencies'
2528
template: |
2629
## What’s Changed
2730

.github/workflows/ci.yml

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ jobs:
1212
eslint:
1313
name: ESLint
1414
runs-on: ubuntu-latest
15+
env:
16+
CI: 1
17+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
1518
steps:
1619
- uses: actions/checkout@v1
1720
with:
18-
fetch-depth: 2
19-
- name: Install Package dependencies
20-
run: composer prepare:js
21+
fetch-depth: 3
22+
- name: Prepare setting
23+
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
2124
- name: Check code style
22-
run: composer eslint
25+
run: bash travis-ci/bin/js/js-lint.sh
2326
- uses: 8398a7/action-slack@v1
2427
with:
2528
type: failure
@@ -30,19 +33,17 @@ jobs:
3033
phpcs:
3134
name: PHP Code Sniffer
3235
runs-on: ubuntu-latest
36+
env:
37+
CI: 1
38+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
3339
steps:
3440
- uses: actions/checkout@v1
3541
with:
36-
fetch-depth: 2
42+
fetch-depth: 3
3743
- name: Prepare setting
3844
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
39-
env:
40-
CI: 1
41-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
42-
- name: Install Composer dependencies
43-
run: composer prepare:php
4445
- name: Check code style
45-
run: composer phpcs
46+
run: bash travis-ci/bin/php/phpcs.sh
4647
- uses: 8398a7/action-slack@v1
4748
with:
4849
type: failure
@@ -53,19 +54,17 @@ jobs:
5354
phpmd:
5455
name: PHPMD
5556
runs-on: ubuntu-latest
57+
env:
58+
CI: 1
59+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
5660
steps:
5761
- uses: actions/checkout@v1
5862
with:
59-
fetch-depth: 2
63+
fetch-depth: 3
6064
- name: Prepare setting
6165
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
62-
env:
63-
CI: 1
64-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
65-
- name: Install Composer dependencies
66-
run: composer prepare:php
6766
- name: Check code style
68-
run: composer phpmd
67+
run: bash travis-ci/bin/php/phpmd.sh
6968
- uses: 8398a7/action-slack@v1
7069
with:
7170
type: failure
@@ -78,14 +77,30 @@ jobs:
7877
name: Jest
7978
needs: eslint
8079
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
node: ['8', '10', '11', '12']
83+
env:
84+
CI: 1
85+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
8186
steps:
8287
- uses: actions/checkout@v1
8388
with:
84-
fetch-depth: 2
85-
- name: Install Package dependencies
86-
run: composer prepare:js
89+
fetch-depth: 3
90+
- name: Setup node
91+
uses: actions/setup-node@v1
92+
with:
93+
node-version: ${{ matrix.node }}
94+
- name: Prepare setting
95+
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
8796
- name: Run tests
88-
run: composer jest
97+
run: bash travis-ci/bin/js/js-test.sh
98+
- name: Codecov
99+
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
100+
env:
101+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
102+
COVERAGE_FILE: ./assets/js/coverage/lcov.info
103+
if: matrix.node == '12'
89104
- uses: 8398a7/action-slack@v1
90105
with:
91106
type: failure
@@ -97,6 +112,9 @@ jobs:
97112
name: PHPUnit
98113
needs: [phpcs, phpmd]
99114
runs-on: ubuntu-16.04
115+
env:
116+
CI: 1
117+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
100118
services:
101119
mysql:
102120
image: mysql
@@ -118,27 +136,30 @@ jobs:
118136
steps:
119137
- uses: actions/checkout@v1
120138
with:
121-
fetch-depth: 2
139+
fetch-depth: 3
122140
- name: Switch PHP version
123141
env:
124142
PHP_VERSION: ${{ matrix.php }}
125143
run: sudo ln -sf "/usr/bin/php$PHP_VERSION" /etc/alternatives/php
126144
- name: Prepare setting
127145
run: git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci && bash travis-ci/bin/prepare.sh
128146
env:
129-
CI: 1
130-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
131147
WP_VERSION: ${{ matrix.WP_VERSION }}
148+
WP_MULTISITE: ${{ matrix.WP_MULTISITE }}
132149
ACTIVATE_POPULAR_PLUGINS: ${{ matrix.ACTIVATE_POPULAR_PLUGINS }}
133150
- name: Run tests
134151
run: bash travis-ci/bin/php/wp-test.sh
135152
env:
136-
CI: 1
137153
DB_PASS: root
138-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
139154
WP_VERSION: ${{ matrix.WP_VERSION }}
140155
WP_MULTISITE: ${{ matrix.WP_MULTISITE }}
141156
ACTIVATE_POPULAR_PLUGINS: ${{ matrix.ACTIVATE_POPULAR_PLUGINS }}
157+
- name: Codecov
158+
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
159+
env:
160+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
161+
COVERAGE_FILE: ./coverage/clover.xml
162+
if: matrix.ACTIVATE_POPULAR_PLUGINS == 1
142163
- uses: 8398a7/action-slack@v1
143164
with:
144165
type: failure

.github/workflows/gh_releases.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
on:
2-
push:
3-
branches:
4-
- master
5-
name: GitHub Releases
6-
jobs:
7-
draftRelease:
8-
name: Draft Release
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Draft Release
12-
uses: toolmantim/release-drafter@v5.2.0
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: GitHub Releases
6+
jobs:
7+
draftRelease:
8+
name: Draft Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Draft Release
12+
uses: toolmantim/release-drafter@v5.2.0
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/issue_opened.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
on: issues
2-
name: Issue opened
3-
jobs:
4-
assign:
5-
name: Assign issues to project
6-
runs-on: ubuntu-latest
7-
steps:
8-
- name: Assign issues to project
9-
if: github.event.action == 'opened'
10-
uses: alex-page/github-project-automation-plus@master
11-
with:
12-
project: Backlog
13-
column: To do
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
16-
assignAuthor:
17-
name: Assign author to issue
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Assign author to issue
21-
if: github.event.action == 'opened'
22-
uses: technote-space/assign-author@v1
23-
with:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
on:
2+
issues:
3+
types: [opened]
4+
name: Issue opened
5+
jobs:
6+
assign:
7+
name: Assign issues to project
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Assign issues to project
11+
uses: alex-page/github-project-automation-plus@v0.0.3
12+
with:
13+
project: Backlog
14+
column: To do
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
17+
assignAuthor:
18+
name: Assign author to issue
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Assign author to issue
22+
uses: technote-space/assign-author@v1
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr_opened.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
on: pull_request
2-
name: Pull Request opened
3-
jobs:
4-
assignToProject:
5-
name: Assign PullRequest to Project
6-
runs-on: ubuntu-latest
7-
steps:
8-
- name: Assign PullRequest to Project
9-
if: github.event.action == 'opened'
10-
uses: alex-page/github-project-automation-plus@master
11-
with:
12-
project: Backlog
13-
column: To do
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
16-
assignAuthor:
17-
name: Assign author to PR
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Assign Author to PR
21-
if: github.event.action == 'opened'
22-
uses: technote-space/assign-author@v1
23-
with:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
26-
addLabelsByBranch:
27-
name: PR Labeler
28-
runs-on: ubuntu-latest
29-
steps:
30-
- name: PR Labeler
31-
if: github.event.action == 'opened'
32-
uses: technote-fork/pr-labeler-action@master
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
on:
2+
pull_request:
3+
types: [opened]
4+
name: Pull Request opened
5+
jobs:
6+
assignToProject:
7+
name: Assign PullRequest to Project
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Assign PullRequest to Project
11+
uses: alex-page/github-project-automation-plus@v0.0.3
12+
with:
13+
project: Backlog
14+
column: To do
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
17+
assignAuthor:
18+
name: Assign author to PR
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Assign Author to PR
22+
uses: technote-space/assign-author@v1
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
addLabelsByBranch:
27+
name: PR Labeler
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: PR Labeler
31+
uses: technote-fork/pr-labeler-action@master
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr_updated.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
on: pull_request
2-
name: Pull Request updated
3-
jobs:
4-
triage:
5-
name: Pull Request Labeler
6-
runs-on: ubuntu-latest
7-
steps:
8-
- name: Pull Request Labeler
9-
uses: actions/labeler@v2
10-
with:
11-
repo-token: ${{ secrets.GITHUB_TOKEN }}
1+
on: pull_request
2+
name: Pull Request updated
3+
jobs:
4+
triage:
5+
name: Pull Request Labeler
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Pull Request Labeler
9+
uses: actions/labeler@v2
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
on: project_card
2-
name: Project Card Event
3-
jobs:
4-
triage:
5-
name: Auto card labeler
6-
runs-on: ubuntu-latest
7-
steps:
8-
- name: Auto card labeler
9-
uses: technote-space/auto-card-labeler@v1
10-
with:
11-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
on:
2+
project_card:
3+
types: [moved]
4+
name: Project Card Event
5+
jobs:
6+
triage:
7+
name: Auto card labeler
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Auto card labeler
11+
uses: technote-space/auto-card-labeler@v1
12+
with:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)