Skip to content

Commit 882a642

Browse files
Merge pull request #6 from asdfdotdev/development
Add v0.6.0
2 parents 4dbe7a4 + a01e032 commit 882a642

19 files changed

Lines changed: 1137 additions & 382 deletions

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.

.github/funding.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://asdf.dev/support/
File renamed without changes.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
pull_request:
9+
branches:
10+
types: [closed]
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
code-coverage:
16+
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
17+
runs-on: ${{ matrix.operating-system }}
18+
strategy:
19+
matrix:
20+
php-versions: [ '8.0' ]
21+
operating-system: [ ubuntu-20.04 ]
22+
23+
steps:
24+
- name: Setup PHP
25+
# Commit hash for v2.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0
26+
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df
27+
with:
28+
php-version: ${{ matrix.php-versions }}
29+
extensions: mbstring
30+
ini-values: post_max_size=256M, max_execution_time=180
31+
coverage: xdebug
32+
33+
- name: Log Debug Information
34+
run: |
35+
echo "$GITHUB_REF"
36+
echo "$GITHUB_EVENT_NAME"
37+
php --version
38+
39+
- name: Checkout session
40+
uses: actions/checkout@v2
41+
42+
- name: Install PHPUnit
43+
run: |
44+
composer require phpunit/phpunit:^9 --update-with-dependencies
45+
46+
- name: Generate Coverage Report
47+
run: |
48+
cd _tests
49+
mkdir -p build/logs
50+
../vendor/bin/phpunit
51+
52+
- name: Upload coverage to Codecov
53+
run: |
54+
bash <(curl -s https://codecov.io/bash)

.github/workflows/code-styles.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Code Styles
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
pull_request:
9+
branches:
10+
types: [closed]
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
code-styles:
16+
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
17+
runs-on: ${{ matrix.operating-system }}
18+
strategy:
19+
matrix:
20+
php-versions: [ '8.0' ]
21+
operating-system: [ ubuntu-20.04 ]
22+
23+
steps:
24+
- name: Setup PHP
25+
# Commit hash for v2.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0
26+
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df
27+
with:
28+
php-version: ${{ matrix.php-versions }}
29+
extensions: mbstring
30+
ini-values: post_max_size=256M, max_execution_time=180
31+
coverage: xdebug
32+
33+
- name: Checkout session
34+
uses: actions/checkout@v2
35+
36+
- name: Setup PHPCS
37+
run: |
38+
composer install
39+
./vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
40+
./vendor/bin/phpcs --config-set ignore_errors_on_exit 1
41+
./vendor/bin/phpcs --config-set show_progress 1
42+
./vendor/bin/phpcs --config-set colors 1
43+
44+
- name: PHP Compatibility
45+
run: |
46+
./vendor/bin/phpcs --standard=PHPCompatibility -p --runtime-set testVersion 7.1- src/*
47+
48+
- name: WordPress Code Standards
49+
run: |
50+
./vendor/bin/phpcs src/* --report=summary --standard=PSR2
51+
./vendor/bin/phpcs src/* --report=summary --standard=PSR12
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: PHPUnit Tests (7.x)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- development
8+
pull_request:
9+
branches:
10+
types: [closed]
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
test-php:
16+
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
17+
runs-on: ${{ matrix.operating-system }}
18+
strategy:
19+
matrix:
20+
php-versions: [ '7.4', '7.3', '7.2' ]
21+
operating-system: [ ubuntu-18.04 ]
22+
23+
steps:
24+
- name: Setup PHP
25+
# Commit hash for v2.9.0: https://github.com/shivammathur/setup-php/releases/tag/2.9.0
26+
uses: shivammathur/setup-php@50980172517227701a2db688415a86573987b6df
27+
with:
28+
php-version: ${{ matrix.php-versions }}
29+
extensions: mbstring
30+
ini-values: post_max_size=256M, max_execution_time=180
31+
coverage: xdebug
32+
33+
- name: Log Debug Information
34+
run: |
35+
echo "$GITHUB_REF"
36+
echo "$GITHUB_EVENT_NAME"
37+
php --version
38+
39+
- name: Checkout session
40+
uses: actions/checkout@v2
41+
42+
- name: Install PHPUnit
43+
run: |
44+
composer require phpunit/phpunit:^7 --update-with-dependencies
45+
46+
- name: Run PHPUnit Tests
47+
run: |
48+
cd _tests
49+
../vendor/bin/phpunit

0 commit comments

Comments
 (0)