Skip to content

Commit

Permalink
Merge pull request #51 from Codeception/github-actions
Browse files Browse the repository at this point in the history
Use GitHub actions and support PHP 8
  • Loading branch information
Naktibalda committed Dec 18, 2020
2 parents d4e86ce + 2927833 commit 1cdac18
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,29 @@
name: CI

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.3, 7.4, 8.0]

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Validate composer.json
run: composer validate

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

- name: Run test suite
run: php vendor/bin/phpunit
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"ext-dom": "*",
"phpunit/phpunit": "^9.3"
},
Expand Down

0 comments on commit 1cdac18

Please sign in to comment.