This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) 路 1.3 KB
/
Copy pathci.yml
File metadata and controls
48 lines (45 loc) 路 1.3 KB
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
name: CI
on:
- push
- pull_request
jobs:
php:
name: Php
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Php extensions cache
id: phpcache
uses: shivammathur/cache-extensions@v1
with:
php-version: 7.4
extensions: pcov
key: v1
- name: Cache Php extensions
uses: actions/cache@v2
with:
path: ${{ steps.phpcache.outputs.dir }}
key: ${{ steps.phpcache.outputs.key }}
restore-keys: ${{ steps.phpcache.outputs.key }}
- name: Setup Php
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Setup composer cache
id: composercache
run: echo ::set-output name=dir::$(composer config cache-files-dir)
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Setup PCOV
run: pecl install pcov
- name: Install dependencies
run: composer install
- name: CI
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make ci