Skip to content

Commit 39ea539

Browse files
committed
Github Actions CI
1 parent b3ba028 commit 39ea539

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Continuous Integration
2+
on:
3+
push:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
jobs:
7+
qa:
8+
strategy:
9+
matrix:
10+
php: [7.3]
11+
composer: [lowest, current, highest]
12+
runs-on: ubuntu-latest
13+
container:
14+
image: wyrihaximusnet/php:${{ matrix.php }}-zts-alpine3.10-dev-root
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Install Dependencies
18+
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist
19+
if: matrix.composer == 'lowest'
20+
- name: Install Dependencies
21+
run: composer install --ansi --no-progress --no-interaction --prefer-dist
22+
if: matrix.composer == 'current'
23+
- name: Install Dependencies
24+
run: composer update --ansi --no-progress --no-interaction --prefer-dist
25+
if: matrix.composer == 'highest'
26+
- name: Execute QA suite
27+
run: make ci-extended
28+
if: matrix.composer == 'current'
29+
- name: Execute QA suite
30+
run: make ci
31+
if: matrix.composer != 'current'
32+
- name: 'Run Example: sleep'
33+
run: php examples/sleep.php
34+
- name: 'Run Example: versions'
35+
run: php examples/versions.php

0 commit comments

Comments
 (0)