-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.09 KB
/
ci.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
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: |
vendor
/tmp/composer-cache
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
- name: Run lint
uses: php-actions/composer@v6
with:
php_version: 8.1
command: check
- name: Run static analysis
uses: php-actions/composer@v6
with:
php_version: 8.1
command: analyse
- name: Run integration tests
uses: php-actions/composer@v6
env:
BRAINTREE_ENVIRONMENT: ${{ secrets.BRAINTREE_ENVIRONMENT }}
BRAINTREE_MERCHANT_ID: ${{ secrets.BRAINTREE_MERCHANT_ID }}
BRAINTREE_PUBLIC_KEY: ${{ secrets.BRAINTREE_PUBLIC_KEY }}
BRAINTREE_PRIVATE_KEY: ${{ secrets.BRAINTREE_PRIVATE_KEY }}
with:
php_version: 8.1
command: test