Skip to content

Commit

Permalink
Merge pull request #43 from franmomu/ci
Browse files Browse the repository at this point in the history
Move travis to Github Actions
  • Loading branch information
dannyvankooten authored Nov 15, 2021
2 parents 1a78e35 + a464472 commit bccb0a1
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 12 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build

on:
pull_request:
branches:
push:
branches:

jobs:
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.4"

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

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

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"

tests:
name: "Tests"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "highest"
include:
- dependencies: "lowest"
php-version: "7.3"

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

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

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit"

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit bccb0a1

Please sign in to comment.