-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (77 loc) · 2.79 KB
/
actions.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: phpunit
on:
push:
branch:
- master
paths:
- 'lib/**'
- 'tests/**'
- '.github/workflows/actions.yml'
schedule:
- cron: '0 11 */2 * *'
jobs:
run-test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v3
- name : env_vars
run:
echo 環境変数のメモ
echo expected variables
echo LE_CLOUDFLARE_TOKEN1=6qv...zFc
echo LE_CLOUDFLARE_TOKEN2=K8Q...Pbh
echo LE_BASE_DOMAIN1=.biz
echo LE_BASE_DOMAIN2=.com
echo imported variables.
echo LE_CLOUDFLARE_TOKEN1=${{ secrets.LE_CLOUDFLARE_TOKEN1 }}
echo LE_CLOUDFLARE_TOKEN2=${{ secrets.LE_CLOUDFLARE_TOKEN2 }}
echo LE_BASE_DOMAIN1=${{ secrets.LE_BASE_DOMAIN1 }}
echo LE_BASE_DOMAIN2=${{ secrets.LE_BASE_DOMAIN2 }}
- name : composer install
shell: bash
run : |
php -v
composer install -q --no-ansi --no-interaction --no-progress
- name : UnitTest
shell: bash
run : |
vendor/bin/phpunit --filter Unit
- name : FeatureTest CloudfFlare DNS
shell: bash
run : |
export LE_CLOUDFLARE_TOKEN1=${{ secrets.LE_CLOUDFLARE_TOKEN1 }}
export LE_CLOUDFLARE_TOKEN2=${{ secrets.LE_CLOUDFLARE_TOKEN2 }}
export LE_BASE_DOMAIN1=${{ secrets.LE_BASE_DOMAIN1 }}
export LE_BASE_DOMAIN2=${{ secrets.LE_BASE_DOMAIN2 }}
vendor/bin/phpunit --filter CloudflarePluginTest
- name : FeatureTest Wildcard
shell: bash
run : |
export LE_CLOUDFLARE_TOKEN1=${{ secrets.LE_CLOUDFLARE_TOKEN1 }}
export LE_CLOUDFLARE_TOKEN2=${{ secrets.LE_CLOUDFLARE_TOKEN2 }}
export LE_BASE_DOMAIN1=${{ secrets.LE_BASE_DOMAIN1 }}
export LE_BASE_DOMAIN2=${{ secrets.LE_BASE_DOMAIN2 }}
export LE_SAMPLE_EMAIL=${{ secrets.LE_SAMPLE_EMAIL }}
vendor/bin/phpunit --filter WildcardCertificateTest
- name : FeatureTest TwoPlugins
shell: bash
run : |
export LE_CLOUDFLARE_TOKEN1=${{ secrets.LE_CLOUDFLARE_TOKEN1 }}
export LE_CLOUDFLARE_TOKEN2=${{ secrets.LE_CLOUDFLARE_TOKEN2 }}
export LE_BASE_DOMAIN1=${{ secrets.LE_BASE_DOMAIN1 }}
export LE_BASE_DOMAIN2=${{ secrets.LE_BASE_DOMAIN2 }}
export LE_SAMPLE_EMAIL=${{ secrets.LE_SAMPLE_EMAIL }}
vendor/bin/phpunit --filter TwoPluginDNSCertificateTest
- name : Write a log.
shell: bash
run : |
date -I > last-tested.txt
- name: push updated lists
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: update tested date.
file_pattern: last-tested.txt
create_branch: false