-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (31 loc) · 963 Bytes
/
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
name: Tests
on:
push:
branches:
- master
jobs:
phpUnitTests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: 8.0
extensions: mbstring, intl, gd, xml, sqlite
- name: Install OctoberCMS
uses: actions/checkout@v2
with:
ref: develop
repository: octobercms/october-private
token: ${{ secrets.ACCESS_TOKEN }}
- name: Install OctoberCMS dependencies
run: composer install --no-interaction --no-progress --no-scripts
- name: Checkout changes
uses: actions/checkout@v2
with:
path: plugins/mohsin/txt
- name: Install dependencies
run: cd plugins/mohsin/txt && composer install --no-interaction --no-progress --no-scripts
- name: Run Plugin Tests
run: cd plugins/mohsin/txt && ../../../vendor/bin/phpunit