Skip to content

Commit f682fa7

Browse files
Switched to GitHub Actions
1 parent c92d451 commit f682fa7

File tree

5 files changed

+31
-34
lines changed

5 files changed

+31
-34
lines changed

.gitattributes

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/tests export-ignore
44
/.gitattributes export-ignore
55
/.gitignore export-ignore
6-
/.travis.yml export-ignore
76
/phpunit.xml.dist export-ignore
87
/CONTRIBUTING.md export-ignore
98
/README.md export-ignore

.github/workflows/tests.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 4 * * 1'
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php: ["7.0", "7.1", "7.2", "7.3", "7.4"]
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Pull Docker Image
23+
run: docker pull registry.gitlab.com/grahamcampbell/php:${{ matrix.php }}
24+
- name: Run Composer
25+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} install --no-suggest --prefer-dist -n -o
26+
- name: Run PHPUnit
27+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} --coverage-clover build/logs/clover.xml
28+
- name: Upload Coverage
29+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint ocular registry.gitlab.com/grahamcampbell/php:${{ matrix.php }} code-coverage:upload --format=php-clover build/logs/clover.xml

.travis.yml

-31
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2019 Alt Three Services Limited
3+
Copyright (c) 2016-2020 Alt Three Services Limited
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# StyleCI SDK
22

33
[![StyleCI Status](https://styleci.io/repos/55061376/shield)](https://styleci.io/repos/55061376)
4-
[![Build Status](https://img.shields.io/travis/StyleCI/SDK/master.svg?style=flat-square)](https://travis-ci.org/StyleCI/SDK)
4+
[![Build Status](https://img.shields.io/github/workflow/status/StyleCI/SDK/Tests?style=flat-square)](https://github.com/StyleCI/SDK/actions?query=workflow%3ATests)
55
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/StyleCI/SDK.svg?style=flat-square)](https://scrutinizer-ci.com/g/StyleCI/SDK/code-structure)
66
[![Quality Score](https://img.shields.io/scrutinizer/g/StyleCI/SDK.svg?style=flat-square)](https://scrutinizer-ci.com/g/StyleCI/SDK)
77
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)

0 commit comments

Comments
 (0)