-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 857 Bytes
/
test.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
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
jobs:
test:
runs-on: ubuntu-latest
name: Tests
services:
redis:
image: redis
ports:
- 6379/tcp
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer
- name: Install
run: composer install
# update kirby to latest release of version 3 (includes release candidates!)
# https://semver.mwl.be/#!?package=getkirby%2Fcms&version=3.*&minimum-stability=RC
- name: Update Kirby Core
run: composer require getkirby/cms:"3.*@RC"
- name: Run Tests
run: composer test