Skip to content

Commit

Permalink
Merge pull request #169 from recoilphp/gha
Browse files Browse the repository at this point in the history
Use GHA for CI instead of Travis.
  • Loading branch information
jmalloc authored Dec 2, 2020
2 parents d86a7b3 + bb19293 commit c3749a9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on:
push:
branches:
- '*'
pull_request:
schedule:
- cron: 0 14 * * 0
jobs:
ci:
name: PHP v${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.2', '7.3', '7.4']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Check PHP version
run: php -v
- name: Checkout
uses: actions/checkout@v1
- name: Make
run: make ci
- name: Upload Coverage Reports
if: success()
run: |
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit c3749a9

Please sign in to comment.