Skip to content

Commit

Permalink
Merge pull request #65 from jfelder/github-actions
Browse files Browse the repository at this point in the history
Migrating to GitHub Actions
  • Loading branch information
jfelder authored Jan 9, 2024
2 parents 10c4c75 + d460243 commit 406c83f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on:
push:
branches:
- master
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 406c83f

Please sign in to comment.