Skip to content

Commit 870dee1

Browse files
authored
Test UserNotes\Sorter
We add a copy of the latest run-tests.php from the PHP-8.0 branch, and tests for the `UserNotes\Sorter` with full code coverage. We also run tests on GitHub Actions. Co-authored-by: Andreas Möller <[email protected]> Closes GH-606.
1 parent c1dce90 commit 870dee1

File tree

6 files changed

+4008
-0
lines changed

6 files changed

+4008
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ root = true
22

33
[*]
44
insert_final_newline = true
5+
6+
[*.yaml]
7+
charset = utf-8
8+
indent_size = 2
9+
indent_style = space
10+
trim_trailing_whitespace = true

.github/workflows/integrate.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# https://docs.github.com/en/actions
2+
3+
name: "Integrate"
4+
5+
on:
6+
pull_request: null
7+
push:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
tests:
13+
name: "Tests"
14+
15+
runs-on: "ubuntu-18.04"
16+
17+
strategy:
18+
matrix:
19+
php-version:
20+
- "7.3"
21+
22+
steps:
23+
- name: "Checkout"
24+
uses: "actions/checkout@v3"
25+
26+
- name: "Set up PHP"
27+
uses: "shivammathur/setup-php@v2"
28+
with:
29+
coverage: "none"
30+
extensions: "none"
31+
php-version: "${{ matrix.php-version }}"
32+
33+
- name: "Set up problem matchers for PHP"
34+
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
35+
36+
- name: "Run tests"
37+
run: "php tests/run-tests.php -j3 -q --show-diff"

0 commit comments

Comments
 (0)