forked from Olympusrupack/Olympusrupack
-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (43 loc) · 2.03 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Tests
env:
PHPBB_LANGUAGE: 'ru' # CHANGE the language iso to validate HERE
PHPBB_VERSION: '3.3' # CHANGE the main version of phpBB HERE - 3.3 or master
PHPBB_TAG: '3.3.x' # CHANGE the tag to checkout for validation HERE
# PHPBB_TAG: 'prep-release-3.3.6' # CHANGE the tag to checkout for validation HERE
# PHPBB_TAG: 'release-3.3.11' # CHANGE the tag to checkout for validation HERE
on: [push, pull_request]
jobs:
basic-checks:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: '7.4'
name: PHP ${{ matrix.php }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 100
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Setup environment for testing
run: |
mkdir -p --verbose $PHPBB_VERSION/$PHPBB_LANGUAGE
mkdir -p --verbose $PHPBB_VERSION/en/language
mkdir -p --verbose $PHPBB_VERSION/en/styles/prosilver/theme
mv -v language $PHPBB_VERSION/$PHPBB_LANGUAGE
mv -v styles $PHPBB_VERSION/$PHPBB_LANGUAGE
git clone --branch $PHPBB_TAG "https://github.com/phpbb/phpbb.git"
mv -v phpbb/phpBB/language/en/ $PHPBB_VERSION/en/language/
mv -v phpbb/phpBB/styles/prosilver/theme/en/ $PHPBB_VERSION/en/styles/prosilver/theme/en/
curl -sS "https://getcomposer.org/installer" | php
- name: Install dependensies
run: |
composer install --no-interaction --prefer-source
- name: Run language pack prevalidator tests
run: |
php vendor/bin/translation.php validate $PHPBB_LANGUAGE --phpbb-version=$PHPBB_VERSION --display-notices