Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 96ff2bb

Browse files
authored
chore: replace CircleCI with GitHub actions (#28)
* chore: use github actions instead of circleci * chore: remove circleci * fix: disable 8.0 * chore: match with circleci * chore: remove travis * chore: keep only clover xml report * chore: disable 7.2 * chore: disable 7.2
1 parent e75e20d commit 96ff2bb

File tree

6 files changed

+122
-111
lines changed

6 files changed

+122
-111
lines changed

‎.circleci/config.yml‎

Lines changed: 0 additions & 87 deletions
This file was deleted.

‎.github/dependabot.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
target-branch: "master"
6+
schedule:
7+
interval: "daily"
8+

‎.github/workflows/build.yml‎

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Test
2+
on: [pull_request]
3+
4+
jobs:
5+
psalm:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- name: Psalm
11+
uses: docker://vimeo/psalm-github-actions
12+
with:
13+
security_analysis: true
14+
report_file: results.sarif
15+
16+
- name: Upload Security Analysis results to GitHub
17+
uses: github/codeql-action/upload-sarif@v1
18+
with:
19+
sarif_file: results.sarif
20+
21+
# codecov:
22+
# runs-on: ubuntu-latest
23+
# steps:
24+
# - uses: actions/checkout@v2
25+
# with:
26+
# fetch-depth: 0
27+
28+
# - name: Cache Composer dependencies
29+
# uses: actions/cache@v2
30+
# with:
31+
# path: /tmp/composer-cache
32+
# key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
33+
34+
# - uses: php-actions/composer@v5
35+
36+
# - uses: php-actions/phpunit@v2
37+
# env:
38+
# XDEBUG_MODE: coverage
39+
# with:
40+
# php_extensions: xdebug
41+
# args: --coverage-clover coverage.xml
42+
43+
# - uses: codecov/codecov-action@v1
44+
# with:
45+
# file: ./coverage.xml
46+
# fail_ci_if_error: true
47+
# verbose: true
48+
49+
test:
50+
runs-on: ubuntu-latest
51+
strategy:
52+
matrix:
53+
php:
54+
- 7.1
55+
# - 7.2
56+
# - 7.3
57+
# - 7.4
58+
# - 8.0
59+
include:
60+
- php: 7.1
61+
phpunit: 7.5.20
62+
# - php: 7.2
63+
# phpunit: 8.5.13
64+
# - php: 7.3
65+
# phpunit: 9.5.0
66+
# - php: 7.4
67+
# phpunit: 9.5.0
68+
# - php: 8.0
69+
# phpunit: 9.5.0
70+
71+
steps:
72+
- uses: actions/checkout@v2
73+
74+
- name: Cache Composer dependencies
75+
uses: actions/cache@v2
76+
with:
77+
path: /tmp/composer-cache
78+
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
79+
80+
- uses: php-actions/composer@v5
81+
with:
82+
php_version: ${{ matrix.php }}
83+
84+
- uses: php-actions/phpunit@v2
85+
with:
86+
php_version: ${{ matrix.php }}
87+
version: ${{ matrix.phpunit }}

‎.github/workflows/release.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
dryrun:
6+
description: "DryRun"
7+
required: false
8+
default: 'true'
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- uses: actions/checkout@v2
16+
17+
- name: git/unshallow
18+
run: git fetch --prune --unshallow
19+
20+
- uses: cycjimmy/semantic-release-action@v2
21+
with:
22+
dry_run: ${{ github.event.inputs.dryrun }}
23+
extra_plugins: |
24+
@semantic-release/changelog
25+
@semantic-release/git
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

‎.travis.yml‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎phpunit.xml.dist‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121

2222
<logging>
2323
<log type="coverage-clover" target="build/logs/clover.xml"/>
24-
<log type="coverage-html" target="build/logs/report" charset="UTF-8"
25-
yui="true" highlight="true"
26-
lowUpperBound="50" highLowerBound="80"/>
27-
<log type="testdox-html" target="build/logs/testdox.html" />
2824
</logging>
2925

3026
</phpunit>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /