Skip to content

Commit

Permalink
Switch from Travis to GitHub actions for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cspivack committed Jan 1, 2022
1 parent 96e13e5 commit d4fc336
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
insert_final_newline = false

[*.yml]
insert_final_newline = false
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHPUnit tests

on:
push:
branches:
main
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0, 8.1]

name: Tests on PHP ${{ matrix.php }}

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

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

- name: Install dependencies
run: composer update --prefer-source --no-interaction --no-progress

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

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,4 @@ Run tests with `composer test` and run static analyis with `composer phpstan`.

## Roadmap

- [ ] Add changelog
- [ ] Add contributing information
- [x] Add support for email addresses using player names
- [ ] Add support for team/player relationships (getting a list of all players on a particular team, getting a player's teammates, etc.)

0 comments on commit d4fc336

Please sign in to comment.