-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (65 loc) · 2.49 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
pull_request:
push:
branches:
- "main"
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download cc-test-reporter
run: |
mkdir -p ${GITHUB_WORKSPACE}/tmp/
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
chmod +x ./tmp/cc-test-reporter
- name: Start docker containers
env:
USER_ID: 1001
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose up -d
- name: Install dependencies
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make update-dependencies
- name: Run coverage
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make coverage
- name: Upload coverage results to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
${GITHUB_WORKSPACE}/tmp/cc-test-reporter after-build -p /var/www/html --coverage-input-type clover;
infection-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Start docker containers
env:
USER_ID: 1001
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose up -d
- name: Install dependencies
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make update-dependencies
- name: Run infection testing
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make infection-testing
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Start docker containers
env:
USER_ID: 1001
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose up -d
- name: Install dependencies
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make update-dependencies
- name: Run static analysis
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make static-analysis
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Start docker containers
env:
USER_ID: 1001
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose up -d
- name: Install dependencies
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make update-dependencies
- name: Check code style
run: cd ${GITHUB_WORKSPACE}/docker && docker-compose exec -T php make code-style