Skip to content

Commit

Permalink
Merge pull request #28 from gsteel/wip/gha-psalm
Browse files Browse the repository at this point in the history
Migrate to GitHub Actions and Initial Psalm Setup
  • Loading branch information
weierophinney authored Mar 16, 2021
2 parents 2c2d7dd + 8525961 commit b6ab28b
Show file tree
Hide file tree
Showing 8 changed files with 6,409 additions and 61 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
- '[0-9]+.[0-9]+.x'
- 'refs/pull/*'

jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1

qa:
name: QA Checks
needs: [matrix]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v1
with:
job: ${{ matrix.job }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/.phpunit.result.cache
/.psalm-cache/
/clover.xml
/composer.lock
/coveralls-upload.json
/docs/html/
/laminas-mkdoc-theme.tgz
/laminas-mkdoc-theme/
/phpunit.xml
/vendor/
.phpunit.result.cache
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# laminas-inputfilter

[![Build Status](https://travis-ci.com/laminas/laminas-inputfilter.svg?branch=master)](https://travis-ci.com/laminas/laminas-inputfilter)
[![Coverage Status](https://coveralls.io/repos/github/laminas/laminas-inputfilter/badge.svg?branch=master)](https://coveralls.io/github/laminas/laminas-inputfilter?branch=master)
[![Build Status](https://github.com/laminas/laminas-inputfilter/workflows/Continuous%20Integration/badge.svg)](https://github.com/laminas/laminas-inputfilter/actions?query=workflow%3A"Continuous+Integration")

The laminas-inputfilter component can be used to filter and validate generic sets
of input data. For instance, you could use it to filter `$_GET` or `$_POST`
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@
},
"require-dev": {
"laminas/laminas-coding-standard": "~1.0.0",
"laminas/laminas-db": "^2.12",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.4.2",
"psr/http-message": "^1.0"
"psalm/plugin-phpunit": "^0.15.1",
"psr/http-message": "^1.0",
"vimeo/psalm": "^4.6"
},
"suggest": {
"psr/http-message-implementation": "PSR-7 is required if you wish to validate PSR-7 UploadedFileInterface payloads"
Expand All @@ -59,7 +62,8 @@
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"static-analysis": "psalm --shepherd --stats"
},
"replace": {
"zendframework/zend-inputfilter": "^2.10.1"
Expand Down
Loading

0 comments on commit b6ab28b

Please sign in to comment.