Skip to content

Commit

Permalink
Merge pull request #60 from internalsystemerror/feature/gha
Browse files Browse the repository at this point in the history
Switch to GHA CI workflow
  • Loading branch information
geerteltink committed May 14, 2021
2 parents 0cef912 + e4d65d6 commit 972ba9c
Show file tree
Hide file tree
Showing 8 changed files with 438 additions and 336 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
@@ -0,0 +1,8 @@
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.laminas-ci.json export-ignore
/docs/ export-ignore
/mkdocs.yml export-ignore
/phpcs.xml export-ignore
/test/ export-ignore
33 changes: 33 additions & 0 deletions .github/workflows/continuous-integration.yml
@@ -0,0 +1,33 @@
name: "Continuous Integration"

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

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 }}
1 change: 0 additions & 1 deletion .gitignore
@@ -1,6 +1,5 @@
/.phpcs-cache
/clover.xml
/composer.lock
/coveralls-upload.json
/docs/html/
/laminas-mkdoc-theme.tgz
Expand Down
18 changes: 18 additions & 0 deletions .laminas-ci.json
@@ -0,0 +1,18 @@
{
"additional_checks": [
{
"name": "QA Checks",
"job": {
"php": "*",
"command": "composer check",
"dependencies": ["lowest", "latest"]
}
},
{
"name": "Lint ruleset.xml using phpcs.xsd schema",
"job": {
"command": "xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd src/LaminasCodingStandard/ruleset.xml"
}
}
]
}
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

0 comments on commit 972ba9c

Please sign in to comment.