Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/deploy.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/doc_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Generate the complete documentation then upload to the website under the master section
name: "Doc generation on master"

on:
push:
branches:
- master

jobs:

doc-generation:

name: "Doc generation"

steps:

- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: "Update git config"
run: git config --global user.name "${GH_NAME}" && git config --global user.email "${GH_EMAIL}" && echo "machine github.com login ${GH_NAME} password ${GITHUB_TOKEN}" > ~/.netrc

- name: "Yarn install"
run: yarn install
working-directory: "website"

- name: "Push the new doc"
run: GIT_USER="${GH_NAME}" yarn run publish-gh-pages
working-directory: "website"


79 changes: 79 additions & 0 deletions .github/workflows/test_dependancies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# test for breaking changes on the different bundle projects
#todo: use a matrix syntax?

name: "Test the bundles' dependencies"

on:
- "pull_request"
- "push"

jobs:

symfony-test:
name: "Test symfony bundle"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "copy the project"
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor

- name: "Clone the bundle project"
run: git clone https://github.com/thecodingmachine/graphqlite-bundle.git
working-directory: "tests/dependencies"

- name: "edit the composer.json"
run: php ./makeComposerLocal.php graphqlite-bundle/composer.json
working-directory: "tests/dependencies"

- name: "install dependancies"
run: composer install
working-directory: "tests/dependencies/graphqlite-bundle"


universal-service-provider-test:
name: "Test graphqlite-universal-service-provider"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "copy the project"
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor

- name: "Clone the bundle project"
run: git clone https://github.com/thecodingmachine/graphqlite-universal-service-provider.git
working-directory: "tests/dependencies"

- name: "edit the composer.json"
run: php ./makeComposerLocal.php graphqlite-universal-service-provider/composer.json
working-directory: "tests/dependencies"

- name: "install dependancies"
run: composer install
working-directory: "tests/dependencies/graphqlite-universal-service-provider"


graphqlite-test:
name: "Test graphqlite-laravel"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "copy the project"
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor

- name: "Clone the bundle project"
run: git clone https://github.com/thecodingmachine/graphqlite-laravel.git
working-directory: "tests/dependencies"

- name: "edit the composer.json"
run: php ./makeComposerLocal.php graphqlite-laravel/composer.json
working-directory: "tests/dependencies"

- name: "install dependancies"
run: composer install
working-directory: "tests/dependencies/graphqlite-laravel"

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ Want to learn more? Head to the [documentation](https://graphqlite.thecodingmach
[![Total Downloads](https://poser.pugx.org/thecodingmachine/graphqlite/downloads)](https://packagist.org/packages/thecodingmachine/graphqlite)
[![Latest Unstable Version](https://poser.pugx.org/thecodingmachine/graphqlite/v/unstable)](https://packagist.org/packages/thecodingmachine/graphqlite)
[![License](https://poser.pugx.org/thecodingmachine/graphqlite/license)](https://packagist.org/packages/thecodingmachine/graphqlite)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thecodingmachine/graphqlite/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/thecodingmachine/graphqlite/?branch=master)
[![Build Status](https://travis-ci.org/thecodingmachine/graphqlite.svg?branch=master)](https://travis-ci.org/thecodingmachine/graphqlite)
[![Coverage Status](https://coveralls.io/repos/thecodingmachine/graphqlite/badge.svg?branch=master&service=github)](https://coveralls.io/github/thecodingmachine/graphqlite?branch=master)
[![Continuous Integration](https://github.com/thecodingmachine/graphqlite/workflows/Continuous%20Integration/badge.svg)](https://github.com/thecodingmachine/graphqlite/actions)
[![codecov](https://codecov.io/gh/thecodingmachine/graphqlite/branch/master/graph/badge.svg)](https://codecov.io/gh/thecodingmachine/graphqlite)

13 changes: 0 additions & 13 deletions scrutinizer.yml.old

This file was deleted.

16 changes: 11 additions & 5 deletions tests/dependencies/makeComposerLocal.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
#!/bin/env php
<?php

$file = $argv[1];
$composerBundlePath = $argv[1];

$composer = json_decode(file_get_contents($file), true);
//fetch the dev-master alias from the local graphqlite composer
$composerGraphqlite = json_decode(file_get_contents(__DIR__.'/copy/composer.json'), true);

$composer['repositories'] = [
$masterAlias = $composerGraphqlite['extra']['branch-alias']['dev-master'];

//edit the bundle composer to use the local graphqlite
$composerBundle = json_decode(file_get_contents($composerBundlePath), true);

$composerBundle['repositories'] = [
[
'type' => 'path',
'url' => '../copy/'
]
];

$composer['require']['thecodingmachine/graphqlite'] = '4.0.x-dev';
$composerBundle['require']['thecodingmachine/graphqlite'] = $masterAlias;

file_put_contents($file, json_encode($composer));
file_put_contents($composerBundlePath, json_encode($composerBundle));
97 changes: 0 additions & 97 deletions travis.yml.old

This file was deleted.