Skip to content

Commit

Permalink
Merge pull request #16 from duboism/github_actions_master
Browse files Browse the repository at this point in the history
Convert Travis tests to GitHub actions
  • Loading branch information
ashnazg authored Nov 24, 2024
2 parents 05c7c69 + ca1c19c commit 5d30a9d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 55 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Main

on:
workflow_dispatch:
push:
branches:
- main
- master
- release/**
pull_request:
branches:
- main
- master
- release/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'macos-latest'] #, 'windows-latest']
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- name: Get source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-values: post_max_size=256M, max_execution_time=180
- run: sudo pear list
- run: sudo pear channel-update pear.php.net
- run: sudo pear upgrade --force pear/pear
- run: sudo pear list
- run: sudo pear install --force package.xml
- run: sudo pear list
- run: sudo pear package
- run: sudo pear package-validate
- run: sudo pear install --force *.tgz
- run: sudo pear list
- run: composer install
- run: ./vendor/bin/phpunit tests
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

29 changes: 0 additions & 29 deletions phpunit.xml.dist

This file was deleted.

0 comments on commit 5d30a9d

Please sign in to comment.