Skip to content

Commit f1ac731

Browse files
authored
Merge pull request #298 from Kharhamel/actionCi
improved the action ci
2 parents d3383b4 + 6bd9c54 commit f1ac731

File tree

7 files changed

+129
-129
lines changed

7 files changed

+129
-129
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Generate the complete documentation then upload to the website under the master section
2+
name: "Doc generation on master"
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
11+
doc-generation:
12+
13+
name: "Doc generation"
14+
15+
steps:
16+
17+
- name: "Checkout"
18+
uses: "actions/checkout@v2"
19+
20+
- name: "Setup NodeJS"
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: '12.x'
24+
25+
- name: "Update git config"
26+
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
27+
28+
- name: "Yarn install"
29+
run: yarn install
30+
working-directory: "website"
31+
32+
- name: "Push the new doc"
33+
run: GIT_USER="${GH_NAME}" yarn run publish-gh-pages
34+
working-directory: "website"
35+
36+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# test for breaking changes on the different bundle projects
2+
#todo: use a matrix syntax?
3+
4+
name: "Test the bundles' dependencies"
5+
6+
on:
7+
- "pull_request"
8+
- "push"
9+
10+
jobs:
11+
12+
symfony-test:
13+
name: "Test symfony bundle"
14+
runs-on: "ubuntu-latest"
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v2"
18+
19+
- name: "copy the project"
20+
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor
21+
22+
- name: "Clone the bundle project"
23+
run: git clone https://github.com/thecodingmachine/graphqlite-bundle.git
24+
working-directory: "tests/dependencies"
25+
26+
- name: "edit the composer.json"
27+
run: php ./makeComposerLocal.php graphqlite-bundle/composer.json
28+
working-directory: "tests/dependencies"
29+
30+
- name: "install dependancies"
31+
run: composer install
32+
working-directory: "tests/dependencies/graphqlite-bundle"
33+
34+
35+
universal-service-provider-test:
36+
name: "Test graphqlite-universal-service-provider"
37+
runs-on: "ubuntu-latest"
38+
steps:
39+
- name: "Checkout"
40+
uses: "actions/checkout@v2"
41+
42+
- name: "copy the project"
43+
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor
44+
45+
- name: "Clone the bundle project"
46+
run: git clone https://github.com/thecodingmachine/graphqlite-universal-service-provider.git
47+
working-directory: "tests/dependencies"
48+
49+
- name: "edit the composer.json"
50+
run: php ./makeComposerLocal.php graphqlite-universal-service-provider/composer.json
51+
working-directory: "tests/dependencies"
52+
53+
- name: "install dependancies"
54+
run: composer install
55+
working-directory: "tests/dependencies/graphqlite-universal-service-provider"
56+
57+
58+
graphqlite-test:
59+
name: "Test graphqlite-laravel"
60+
runs-on: "ubuntu-latest"
61+
steps:
62+
- name: "Checkout"
63+
uses: "actions/checkout@v2"
64+
65+
- name: "copy the project"
66+
run: rsync -av . tests/dependencies/copy/ --exclude tests --exclude vendor
67+
68+
- name: "Clone the bundle project"
69+
run: git clone https://github.com/thecodingmachine/graphqlite-laravel.git
70+
working-directory: "tests/dependencies"
71+
72+
- name: "edit the composer.json"
73+
run: php ./makeComposerLocal.php graphqlite-laravel/composer.json
74+
working-directory: "tests/dependencies"
75+
76+
- name: "install dependancies"
77+
run: composer install
78+
working-directory: "tests/dependencies/graphqlite-laravel"
79+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ Want to learn more? Head to the [documentation](https://graphqlite.thecodingmach
7070
[![Total Downloads](https://poser.pugx.org/thecodingmachine/graphqlite/downloads)](https://packagist.org/packages/thecodingmachine/graphqlite)
7171
[![Latest Unstable Version](https://poser.pugx.org/thecodingmachine/graphqlite/v/unstable)](https://packagist.org/packages/thecodingmachine/graphqlite)
7272
[![License](https://poser.pugx.org/thecodingmachine/graphqlite/license)](https://packagist.org/packages/thecodingmachine/graphqlite)
73-
[![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)
74-
[![Build Status](https://travis-ci.org/thecodingmachine/graphqlite.svg?branch=master)](https://travis-ci.org/thecodingmachine/graphqlite)
75-
[![Coverage Status](https://coveralls.io/repos/thecodingmachine/graphqlite/badge.svg?branch=master&service=github)](https://coveralls.io/github/thecodingmachine/graphqlite?branch=master)
73+
[![Continuous Integration](https://github.com/thecodingmachine/graphqlite/workflows/Continuous%20Integration/badge.svg)](https://github.com/thecodingmachine/graphqlite/actions)
74+
[![codecov](https://codecov.io/gh/thecodingmachine/graphqlite/branch/master/graph/badge.svg)](https://codecov.io/gh/thecodingmachine/graphqlite)
75+

scrutinizer.yml.old

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
#!/bin/env php
22
<?php
33

4-
$file = $argv[1];
4+
$composerBundlePath = $argv[1];
55

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

8-
$composer['repositories'] = [
9+
$masterAlias = $composerGraphqlite['extra']['branch-alias']['dev-master'];
10+
11+
//edit the bundle composer to use the local graphqlite
12+
$composerBundle = json_decode(file_get_contents($composerBundlePath), true);
13+
14+
$composerBundle['repositories'] = [
915
[
1016
'type' => 'path',
1117
'url' => '../copy/'
1218
]
1319
];
1420

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

17-
file_put_contents($file, json_encode($composer));
23+
file_put_contents($composerBundlePath, json_encode($composerBundle));

travis.yml.old

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)