Skip to content

Commit

Permalink
Merge pull request #19 from weierophinney/feature/gha-workflow
Browse files Browse the repository at this point in the history
Switch to GHA CI workflow
  • Loading branch information
weierophinney authored Jun 11, 2021
2 parents 05efb90 + 09dcf38 commit feba79f
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 255 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 }}
services:
mongodb:
image: mongo:4.4
7 changes: 7 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extensions": [
"mongodb",
"pdo",
"pdo-sqlite"
]
}
13 changes: 13 additions & 0 deletions .laminas-ci/pre-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

JOB=$3
PHP_VERSION=$(echo "${JOB}" | jq -r '.php')

if [[ "$PHP_VERSION" =~ 8. ]];then
composer require --ignore-platform-req=php --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter
else
composer require --dev --no-interaction --prefer-dist alcaeus/mongo-php-adapter
fi

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

This file was deleted.

187 changes: 0 additions & 187 deletions CHANGELOG.md

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Laminas Doctrine QueryBuilder
========================

[![Build Status](https://travis-ci.com/laminas-api-tools/api-tools-doctrine-querybuilder.svg)](https://travis-ci.com/laminas-api-tools/api-tools-doctrine-querybuilder)
[![Coverage Status](https://coveralls.io/repos/github/laminas-api-tools/api-tools-doctrine-querybuilder/badge.svg)](https://coveralls.io/github/laminas-api-tools/api-tools-doctrine-querybuilder)
[![Total Downloads](https://poser.pugx.org/laminas-api-tools/api-tools-doctrine-querybuilder/downloads)](https://packagist.org/packages/laminas-api-tools/api-tools-doctrine-querybuilder)
[![Build Status](https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/actions/workflows/continuous-integration.yml)

This library provides query builder directives from array parameters. This library was designed
to apply filters from an HTTP request to give an API fluent filter and order-by dialects.
Expand Down
2 changes: 1 addition & 1 deletion test/Filter/local.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
],
'odm_default' => [
'server' => 'localhost',
'server' => 'mongodb',
'port' => '27017',
'user' => '',
'password' => '',
Expand Down
2 changes: 1 addition & 1 deletion test/OrderBy/local.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
],
'odm_default' => [
'server' => 'localhost',
'server' => 'mongodb',
'port' => '27017',
'user' => '',
'password' => '',
Expand Down

0 comments on commit feba79f

Please sign in to comment.