Skip to content

Commit 6101857

Browse files
authored
Create tests.yml
1 parent 98357e5 commit 6101857

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tests
2+
3+
# For most extensions, this workflow should not need changing;
4+
# simply commit it to your repository.
5+
#
6+
# See the README for full details and configuration instructions:
7+
# - https://github.com/phpbb-extensions/test-framework
8+
#
9+
on:
10+
push:
11+
# Run tests when commits are pushed to these branches in your repo,
12+
# or remove this branches section to run tests on all your branches
13+
branches:
14+
- main
15+
16+
pull_request:
17+
# Run tests when pull requests are made on these branches in your repo,
18+
# or remove this branches section to run tests on all your branches
19+
branches:
20+
- main
21+
22+
jobs:
23+
call-tests:
24+
name: Extension tests
25+
# Set the phpBB branch to test your extension with after the @ symbol
26+
# - 3.3.x: Targets the phpBB 3.3.x release line
27+
# - master: Targets the latest development version of phpBB (master branch)
28+
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
29+
with:
30+
# Your extension vendor/package name
31+
EXTNAME: phpbbmodders/groupwarn
32+
33+
# Run MySQL/MariaDB tests?
34+
RUN_MYSQL_JOBS: 0
35+
36+
# Run PostgreSQL tests?
37+
RUN_PGSQL_JOBS: 0
38+
39+
# Run MSSQL and SQLite3 tests?
40+
RUN_MSSQL_JOBS: 0
41+
42+
# Run Windows IIS & PostgreSQL tests?
43+
RUN_WINDOWS_JOBS: 0
44+
45+
# Preferred PHP version used for all test jobs.
46+
PRIMARY_PHP_VERSION: '8.1'
47+
48+
# The MySQL and PostgreSQL jobs run tests across multiple PHP versions.
49+
# List the PHP versions you want your extension tested with.
50+
PHP_VERSION_MATRIX: '["8.1", "8.2", "8.3", "8.4"]'

0 commit comments

Comments
 (0)