-
Notifications
You must be signed in to change notification settings - Fork 31
49 lines (46 loc) · 1.26 KB
/
gmail-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
40
41
42
43
44
45
46
47
48
49
---
name: Gmail Test
on:
push:
branches: [main]
env:
IMAP_MAILBOX: "{imap.gmail.com:993/ssl/novalidate-cert}"
IMAP_USERNAME: ${{ secrets.GOOGLE_USERNAME }}
IMAP_PASSWORD: ${{ secrets.GOOGLE_PASSWORD }}
IMAP_ACCESS_TOKEN: ${{ secrets.GOOGLE_ACCESS_TOKEN }}
permissions: write-all
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- 'ubuntu-latest'
#- 'windows-latest'
#- 'macos-latest'
php-versions:
- '7.0'
#- '7.4'
#- '8.0'
#- '8.1'
phpunit-versions:
- '6.5'
#include:
# - operating-system: 'ubuntu-latest'
# php-versions: '7.2'
# phpunit-versions: '8.5.21'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
- name: Git checkout
uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist
- name: Test
run: phpunit