-
-
Save weierophinney/9decd19f76b7d9745c6559074053fa65 to your computer and use it in GitHub Desktop.
CI workflow for Laminas packages (and any PHP package you want to use it on)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Some notes:
-
You should also add the
composer.lock
file to the repository! This MAY mean removing acomposer.lock
entry from the.gitignore
file first. -
Make sure you remove the
.travis.yml
file! -
You can replace the
README.md
badges with the following:[![Build Status](https://github.com/laminas/laminas-{PACKAGE}/workflows/Continuous%20Integration/badge.svg)](https://github.com/laminas/laminas-{PACKAGE}/actions?query=workflow%3A"Continuous+Integration")
Does also .coveralls.yml
need to be removed?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install: