Skip to content

Commit bf803ab

Browse files
committed
travis => github action
1 parent 2b09bc3 commit bf803ab

File tree

5 files changed

+51
-35
lines changed

5 files changed

+51
-35
lines changed

.github/workflows/ci.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
php74-min:
10+
name: PHP 7.4 (--prefer-lowest)
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v2
15+
- name: composer test
16+
uses: docker://chubbyphp/ci-php74:latest
17+
env:
18+
COMPOSER_ARGS: "--prefer-lowest"
19+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
21+
php74:
22+
name: PHP 7.4
23+
runs-on: ubuntu-20.04
24+
steps:
25+
- name: checkout
26+
uses: actions/checkout@v2
27+
- name: composer test
28+
uses: docker://chubbyphp/ci-php74:latest
29+
env:
30+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
32+
php80:
33+
name: PHP 8.0
34+
runs-on: ubuntu-20.04
35+
steps:
36+
- name: checkout
37+
uses: actions/checkout@v2
38+
- name: composer test
39+
uses: docker://chubbyphp/ci-php80:latest
40+
env:
41+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
43+
- name: sonarcloud.io
44+
uses: sonarsource/sonarcloud-github-action@master
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

-32
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# chubbyphp-framework-skeleton
22

3-
[![Build Status](https://api.travis-ci.org/chubbyphp/chubbyphp-framework-skeleton.png?branch=master)](https://travis-ci.org/chubbyphp/chubbyphp-framework-skeleton)
3+
[![CI](https://github.com/chubbyphp/chubbyphp-framework-skeleton/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyphp/chubbyphp-framework-skeleton/actions?query=workflow%3ACI)
44
[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-framework-skeleton/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-framework-skeleton?branch=master)
5-
[![Infection MSI](https://badge.stryker-mutator.io/github.com/chubbyphp/chubbyphp-framework-skeleton/master)](https://travis-ci.org/chubbyphp/chubbyphp-framework-skeleton)
5+
[![Infection MSI](https://badge.stryker-mutator.io/github.com/chubbyphp/chubbyphp-framework-skeleton/master)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-framework-skeleton/master)
66

77
[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-skeleton&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-skeleton)
88
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-framework-skeleton&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-framework-skeleton)

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@test:loc",
5454
"@test:cs"
5555
],
56-
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
56+
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
5757
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
5858
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
5959
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",

sonar-project.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
sonar.organization=chubbyphp
12
sonar.projectKey=chubbyphp_chubbyphp-framework-skeleton
23
sonar.projectName=chubbyphp-framework-skeleton
34

0 commit comments

Comments
 (0)