Skip to content

Commit

Permalink
Replace travis with GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jan 23, 2024
1 parent 091bcc7 commit ea88833
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous integration
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Cache the vendor dir
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-${{ matrix.php-version }}-vendor-${{ hashFiles('composer.lock') }}
- name: Install
run: composer install --no-interaction --prefer-dist
- name: Lint
run: composer lint
- name: Static check
run: composer check
# - name: Test
# run: composer test
# - name: Upload coverage report
# uses: codecov/codecov-action@v4
# with:
# files: ./coverage/coverage-final.json
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit ea88833

Please sign in to comment.