Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit fb73d4b

Browse files
committed
Improve GHA workflows
1 parent 760f058 commit fb73d4b

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/ci-scheduled.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI (scheduled)
2+
on:
3+
schedule:
4+
- cron: 0 14 * * 0 # Sunday 2PM UTC = Monday 12AM AEST
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
php: ['7.3', '7.4', '8.0']
12+
name: PHP ${{ matrix.php }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
- name: Set up PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: ${{ matrix.php }}
20+
extensions: mbstring
21+
coverage: none
22+
- name: Check PHP version
23+
run: php -v
24+
- name: Install dependencies
25+
run: make vendor
26+
- name: Check Kahlan Version
27+
run: vendor/bin/kahlan --no-header --version
28+
- name: Make
29+
run: make ci

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@ name: CI
22
on:
33
push:
44
pull_request:
5-
schedule:
6-
- cron: 0 14 * * 0 # Sunday 2PM UTC = Monday 12AM AEST
75
jobs:
86
test:
97
runs-on: ubuntu-latest
108
strategy:
119
fail-fast: false
1210
matrix:
13-
php: ['7.2', '7.3', '7.4']
11+
php: ['7.3', '7.4', '8.0']
1412
name: PHP ${{ matrix.php }}
1513
steps:
1614
- name: Checkout
1715
uses: actions/checkout@v1
1816
- name: Set up PHP
19-
uses: shivammathur/setup-php@master
17+
uses: shivammathur/setup-php@v2
2018
with:
2119
php-version: ${{ matrix.php }}
2220
extensions: mbstring

0 commit comments

Comments
 (0)