Skip to content

Commit

Permalink
Merge pull request #28 from weierophinney/qa/ci-workflow
Browse files Browse the repository at this point in the history
Adopt Laminas CI workflow for GHA
  • Loading branch information
weierophinney authored Mar 1, 2021
2 parents efd4f22 + 08e28c3 commit 2d57434
Show file tree
Hide file tree
Showing 8 changed files with 3,574 additions and 319 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/clover.xml
/composer.lock
/coveralls-upload.json
/vendor/
8 changes: 8 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"exclude": [
{"name": "PHPUnit on PHP 5.6 with locked dependencies"},
{"name": "PHPUnit on PHP 7.0 with locked dependencies"},
{"name": "PHPUnit on PHP 7.1 with locked dependencies"},
{"name": "PHPUnit on PHP 7.2 with locked dependencies"}
]
}
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

251 changes: 0 additions & 251 deletions CHANGELOG.md

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Laminas HAL
======

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

Introduction
------------
Expand All @@ -12,7 +11,7 @@ Language](http://tools.ietf.org/html/draft-kelly-json-hal-06) JSON representatio

Requirements
------------

Please see the [composer.json](composer.json) file.

Installation
Expand Down Expand Up @@ -99,8 +98,8 @@ Each class in the metadata map may contain one or more of the following configur
- `route_params` - an array of route parameters to use for link generation.
- `route_options` - an array of options to pass to the router during link generation.
- `url` - specific URL to use with this resource, if not using a route.
- `max_depth` - integer; limit to what nesting level entities and collections are rendered; if the limit is
reached, only `self` links will be rendered. default value is `null`, which means no limit: if unlimited circular
- `max_depth` - integer; limit to what nesting level entities and collections are rendered; if the limit is
reached, only `self` links will be rendered. default value is `null`, which means no limit: if unlimited circular
references are detected, an exception will be thrown to avoid infinite loops.
- `force_self_link` - boolean; set whether a self-referencing link should be automatically generated for the entity.
Defaults to `true` (since its recommended).
Expand Down
Loading

0 comments on commit 2d57434

Please sign in to comment.