Skip to content

Commit cc19bbc

Browse files
dadishsemantic-release-botNurguly Ashyrov
authored
fix(ci): switch to circleci
* refactor(infra): introduce semantic-releasee * chore(infra): set release branch to main * build(infra): remove commit-analyzer options * build(infra): introduce prerelease branch * build(infra): implement github release action * build(infra): update the release assets list * build(infra): trigger release * build(infra): replace semantic-release/github with semantic-release/git * build(infra): add semantic-release/git as dev dependency * build(infra): add semantic-release/github * build(infra): fix semantic-release plugins confuguration * build(infra): put exec command after git command * build(infra): run custom script on exec#publishCmd * build(infra): switch to release branch at exec#publishCmd * build(infra): fix the tag branch name * build(infra): enable the custom publish script * build(infra): make custom publish script more verbose * build(infra): run build script on dev branch * build(infra): install back dependencies after build script * build(infra): keep the node_modules folder after build script * build(infra): update remote repo after release * build(infra): update git release commit message * build(infra): commit Changelog.md into git after release. * build(infra): update package.json version on release. * build(infra): do not publish npm package * build(infra): put semantic-release/github as last step * build(infa): make npm package private * build(infra): add npm token for semantic-release/npm * build(infra): trigger release * build(infra): trigger release * build(infra): trigger release * build(infra): make npm package private * build(infra): trigger a release * build(infra): update semantic-release/npm options * build(infra): trigger a release * build(infra): trigger a release * build(infra): do not remove the package.json on build * build(infra): test all semantic-release/exec commands * build(infra): use stderr for logging semantic-release/exec commands * chore(releasing): [skip ci] 1.4.1-rc.9 ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) * build(infra): trigger a release * chore(releasing): [skip ci] 1.4.1-rc.9 ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) * build(infra): add revert script on publish step * build(infra): leave the scripts folder * build(infra): do not remove scripts on build * fix(build): publish the module files as a release asset * fix(build): release with semantic-release * chore(release): 1.4.1-rc.9 [skip ci] ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) ### Bug Fixes * **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199)) * **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c)) * fix(build): trigger another release * chore(release): 1.4.1-rc.9 [skip ci] ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) ### Bug Fixes * **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199)) * **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c)) * **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6)) * fix(changelog): cleanup the Changelog.md * chore(release): 1.4.1-rc.9 [skip ci] ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) ### Bug Fixes * **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199)) * **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c)) * **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6)) * **changelog:** cleanup the Changelog.md ([df7c123](https://github.com/dadish-etudes/ProcessGraphQL/commit/df7c123e5bd6ff83d1d81b5aa849eb4ab48c207c)) * fix(build): remove the revert script * chore(release): 1.4.1-rc.9 [skip ci] ## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27) ### Bug Fixes * **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199)) * **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c)) * **build:** remove the revert script ([1407ddf](https://github.com/dadish-etudes/ProcessGraphQL/commit/1407ddf4e05183d92e901442d29d989d14c05283)) * **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6)) * **changelog:** cleanup the Changelog.md ([df7c123](https://github.com/dadish-etudes/ProcessGraphQL/commit/df7c123e5bd6ff83d1d81b5aa849eb4ab48c207c)) * fix(release): append "(zip)" suffix to release asset label * chore(release): 1.4.1-rc.10 [skip ci] ## [1.4.1-rc.10](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.9...v1.4.1-rc.10) (2021-02-27) ### Bug Fixes * **release:** append "(zip)" suffix to release asset label ([0dadc99](https://github.com/dadish-etudes/ProcessGraphQL/commit/0dadc997de641274424161aed2fedab791237887)) * chore(dependencies): remove npm module "ora" * chore(release): 1.4.1 [skip ci] ## [1.4.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.0...v1.4.1) (2021-02-27) ### Bug Fixes * **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199)) * **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c)) * **build:** remove the revert script ([1407ddf](https://github.com/dadish-etudes/ProcessGraphQL/commit/1407ddf4e05183d92e901442d29d989d14c05283)) * **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6)) * **changelog:** cleanup the Changelog.md ([df7c123](https://github.com/dadish-etudes/ProcessGraphQL/commit/df7c123e5bd6ff83d1d81b5aa849eb4ab48c207c)) * **release:** append "(zip)" suffix to release asset label ([0dadc99](https://github.com/dadish-etudes/ProcessGraphQL/commit/0dadc997de641274424161aed2fedab791237887)) * build(infra): add test job as requirement for release * chore(release): 1.4.2 [skip ci] ## [1.4.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1...v1.4.2) (2021-04-08) * fix(release): prerelease on main and release on stable * fix(release): attempt to fix release config * chore(release): 1.4.3 [skip ci] ## [1.4.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.2...v1.4.3) (2021-04-08) ### Bug Fixes * **release:** attempt to fix release config ([6467835](https://github.com/dadish-etudes/ProcessGraphQL/commit/6467835747f527159b692fc3db4a519d7110ec9c)) * **release:** prerelease on main and release on stable ([8f7675e](https://github.com/dadish-etudes/ProcessGraphQL/commit/8f7675ea1b86dde79f57528336e7ec7478c46a1a)) * chore(release): 1.4.3-rc.1 [skip ci] ## [1.4.3-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.2...v1.4.3-rc.1) (2021-04-08) ### Bug Fixes * **release:** attempt to fix release config ([6467835](https://github.com/dadish-etudes/ProcessGraphQL/commit/6467835747f527159b692fc3db4a519d7110ec9c)) * **release:** prerelease on main and release on stable ([8f7675e](https://github.com/dadish-etudes/ProcessGraphQL/commit/8f7675ea1b86dde79f57528336e7ec7478c46a1a)) * build(docs): add semantic-release badge Also, let's see how the body of the commit message appears in github release description and Changelog.md file. * chore(release): 1.4.3-rc.2 [skip ci] ## [1.4.3-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3-rc.1...v1.4.3-rc.2) (2021-04-11) * release(docs): update semantic-release badge to open the link in a new tab I really want to see this body message in github release page and in the Changelog.md. * release(docs): bring back the markdown syntax for semantic-release badge * build(infra): test the release on main branch * chore(release): 1.4.4-rc.1 [skip ci] ## [1.4.4-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3...v1.4.4-rc.1) (2021-04-16) * build(infra): let's try another one * build(infra): another one * build(infra): another rc release * chore(release): 1.4.4-rc.2 [skip ci] ## [1.4.4-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.1...v1.4.4-rc.2) (2021-04-16) * build(infra): another release * build(infra): another release * chore(release): 1.4.4-rc.2 [skip ci] ## [1.4.4-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.1...v1.4.4-rc.2) (2021-04-16) * build(infra): another release * chore(release): 1.4.4-rc.3 [skip ci] ## [1.4.4-rc.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.2...v1.4.4-rc.3) (2021-04-16) * chore(release): 1.4.4 [skip ci] ## [1.4.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3...v1.4.4) (2021-04-16) * chore(release): 1.4.4 [skip ci] ## [1.4.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3...v1.4.4) (2021-04-16) * fix(todo): remove extra empty line at the end * chore(release): 1.4.4-rc.4 [skip ci] ## [1.4.4-rc.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.3...v1.4.4-rc.4) (2021-04-19) ### Bug Fixes * **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404)) * fix(infra): testing how the body of this commit will appear in... Github release notes and also in the `Changelog.md` file. * chore(release): 1.4.4-rc.5 [skip ci] ## [1.4.4-rc.5](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.4...v1.4.4-rc.5) (2021-04-19) ### Bug Fixes * **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9)) * fix(infra): another commit message body test Maybe we need to add the blank line after body too if we want it to appear in the changelog. * chore(release): 1.4.5-rc.1 [skip ci] ## [1.4.5-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4...v1.4.5-rc.1) (2021-04-19) ### Bug Fixes * **infra:** another commit message body test ([608922b](https://github.com/dadish-etudes/ProcessGraphQL/commit/608922be74805aab0be070af22d09c412587f6a3)) * **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9)) * **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404)) * build(infra): sync main with stable after a release on stable * chore(release): 1.4.5-rc.2 [skip ci] ## [1.4.5-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5-rc.1...v1.4.5-rc.2) (2021-04-19) * chore(release): 1.4.5 [skip ci] ## [1.4.5](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4...v1.4.5) (2021-04-19) ### Bug Fixes * **infra:** another commit message body test ([608922b](https://github.com/dadish-etudes/ProcessGraphQL/commit/608922be74805aab0be070af22d09c412587f6a3)) * **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9)) * **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404)) * build(infra): push latest from stable to main on release * chore(release): 1.4.6-rc.1 [skip ci] ## [1.4.6-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5...v1.4.6-rc.1) (2021-04-19) * chore(release): 1.4.6 [skip ci] ## [1.4.6](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5...v1.4.6) (2021-04-19) * fix(infra): sync the main branch with stable after release * chore(release): 1.4.7 [skip ci] ## [1.4.7](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.6...v1.4.7) (2021-04-20) ### Bug Fixes * **infra:** sync the main branch with stable after release ([16bb58a](https://github.com/dadish-etudes/ProcessGraphQL/commit/16bb58a0e9b49ff859b41adc434df0f0a30b7dac)) * fix(infra): merge stable into main after a release * chore(release): 1.4.8 [skip ci] ## [1.4.8](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.7...v1.4.8) (2021-04-20) ### Bug Fixes * **infra:** merge stable into main after a release ([87aa8a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/87aa8a700046fc38916d63e4d18003df7ce46986)) * fix(infra): merge stable into main after release * chore(release): 1.4.9 [skip ci] ## [1.4.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.8...v1.4.9) (2021-04-20) ### Bug Fixes * **infra:** merge stable into main after release ([5370f37](https://github.com/dadish-etudes/ProcessGraphQL/commit/5370f373e80235532108ced23f6a05c2789e889e)) * fix(infra): merge stable into main after a release * fix(infra): merge stable into main after a release * chore(release): 1.4.10 [skip ci] ## [1.4.10](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.9...v1.4.10) (2021-04-20) ### Bug Fixes * **infra:** merge stable into main after a release ([9538c21](https://github.com/dadish-etudes/ProcessGraphQL/commit/9538c21a4bab704fef0c44bc1a5442d35b3c9137)) * **infra:** merge stable into main after a release ([0cd62b7](https://github.com/dadish-etudes/ProcessGraphQL/commit/0cd62b77990f019568f5be700c4fdb91d9059d77)) * fix(infra): merge stable into main after a release * fix(infra): merge stable into main after a release * fix(infra): merge stable into main after a release * fix(infra): merge stable into main after a release * fix(infra): merge stable into main after a release * build(infra): put back all github workflows * fix(infra): make release job dependant on tests * chore(release): 1.4.11 [skip ci] ## [1.4.11](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.10...v1.4.11) (2021-04-20) ### Bug Fixes * **infra:** make release job dependant on tests ([a5ff95c](https://github.com/dadish-etudes/ProcessGraphQL/commit/a5ff95cd2bbb740a60d89ebd5a805f1b66dab50c)) * **infra:** merge stable into main after a release ([ae6a083](https://github.com/dadish-etudes/ProcessGraphQL/commit/ae6a083371f9eaea262175367a90bd754f0d53e5)) * **infra:** merge stable into main after a release ([78f37db](https://github.com/dadish-etudes/ProcessGraphQL/commit/78f37dbbb737f38e8cc7dd98d6b7fcc1a3b00838)) * **infra:** merge stable into main after a release ([fe722f2](https://github.com/dadish-etudes/ProcessGraphQL/commit/fe722f2700caedd62ae66794e3a6243b89776ee8)) * **infra:** merge stable into main after a release ([bbe2854](https://github.com/dadish-etudes/ProcessGraphQL/commit/bbe2854d9832df96c3d0b61abefb398975777975)) * **infra:** merge stable into main after a release ([3b0da51](https://github.com/dadish-etudes/ProcessGraphQL/commit/3b0da5107cd6d4642726f24dedf290376fdca36f)) * fix(workflow): set proper names to github jobs * chore(release): 1.4.12-rc.1 [skip ci] ## [1.4.12-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.11...v1.4.12-rc.1) (2021-04-20) ### Bug Fixes * **workflow:** set proper names to github jobs ([cd408a1](https://github.com/dadish-etudes/ProcessGraphQL/commit/cd408a13c7de83058960e953ce36c4feeb53cab3)) * fix(release): update the module version on release * chore(release): 1.4.12-rc.2 [skip ci] ## [1.4.12-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.12-rc.1...v1.4.12-rc.2) (2021-04-20) ### Bug Fixes * **release:** update the module version on release ([920d590](https://github.com/dadish-etudes/ProcessGraphQL/commit/920d590ef0ede21296598af7d4211675e69d43f9)) * feat(build): test minor version bump * chore(release): 1.5.0-rc.1 [skip ci] # [1.5.0-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.12-rc.2...v1.5.0-rc.1) (2021-05-09) ### Features * **build:** test minor version bump ([ed7e35f](https://github.com/dadish-etudes/ProcessGraphQL/commit/ed7e35f0164861f8aec1aac18d0f9ee7737a33ff)) * fix(release): remove custom commit-analyzer rule * chore(release): 1.5.0-rc.2 [skip ci] # [1.5.0-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.1...v1.5.0-rc.2) (2021-05-09) ### Bug Fixes * **release:** remove custom commit-analyzer rule ([cc64a4d](https://github.com/dadish-etudes/ProcessGraphQL/commit/cc64a4da62a774ca18c642f793fa7a5e0a7118e4)) * (infra): run tests on custom events instead of push events * fix(infra): run release when test workflow finishes * fix(ci): fix release workflo * chore(release): 1.5.0-rc.3 [skip ci] # [1.5.0-rc.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.2...v1.5.0-rc.3) (2021-06-27) ### Bug Fixes * **ci:** fix release workflo ([8d525cb](https://github.com/dadish-etudes/ProcessGraphQL/commit/8d525cb2913e0b0ec73bd9a97c759ede64356a09)) * **infra:** run release when test workflow finishes ([fc16ee0](https://github.com/dadish-etudes/ProcessGraphQL/commit/fc16ee08ebe8cdb333d12d0e552b84f5a5510e3a)) * refactor(ci): convert testing workflow into an action * build(ci): add circleci config.yml * fix(ci): use custom docker image for release run * chore(release): 1.5.0-rc.4 [skip ci] # [1.5.0-rc.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.3...v1.5.0-rc.4) (2021-07-02) ### Bug Fixes * **ci:** use custom docker image for release run ([c67a34b](https://github.com/dadish-etudes/ProcessGraphQL/commit/c67a34b64fd7e9321316ecb7e30ba758dbc903d9)) * chore(ci): update ci badge to circleci * fix(ci): run release job only on the main branch * fix(release): remove unused code * chore(ci): remove github actions * fix(ci): require approval for release run Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Nurguly Ashyrov <nurgulyashyrov@Nurgulys-Mac-mini.local>
1 parent 3ec477c commit cc19bbc

File tree

13 files changed

+7503
-562
lines changed

13 files changed

+7503
-562
lines changed

.circleci/config.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
version: 2.1
2+
workflows:
3+
version: 2
4+
release-main:
5+
jobs:
6+
- test:
7+
name: Test php:7.2, phpunit:7.5, mysql:5.7.34
8+
context:
9+
- dockerhub-credentials
10+
php: "7.2"
11+
phpunit: "7.5"
12+
mysql: "5.7.34"
13+
14+
- test:
15+
name: Test php:8.0, phpunit:9.5, mysql:8.0.23
16+
context:
17+
- dockerhub-credentials
18+
php: "8.0"
19+
phpunit: "9.5"
20+
mysql: "8.0.25"
21+
22+
- release:
23+
name: Release
24+
type: approval
25+
context:
26+
- dockerhub-credentials
27+
- github-credentials
28+
- npm-credentials
29+
requires:
30+
- Test php:7.2, phpunit:7.5, mysql:5.7.34
31+
- Test php:8.0, phpunit:9.5, mysql:8.0.23
32+
filters:
33+
branches:
34+
only: main
35+
36+
jobs:
37+
test:
38+
parameters:
39+
php:
40+
description: The PHP version
41+
type: string
42+
mysql:
43+
description: The MySQL version
44+
type: string
45+
phpunit:
46+
description: The phpunit version
47+
type: string
48+
docker:
49+
- image: cimg/php:<<parameters.php>>
50+
auth:
51+
username: $DOCKERHUB_USERNAME
52+
password: $DOCKERHUB_PASSWORD
53+
- image: mysql:<<parameters.mysql>>
54+
auth:
55+
username: $DOCKERHUB_USERNAME
56+
password: $DOCKERHUB_PASSWORD
57+
environment:
58+
MYSQL_ROOT_PASSWORD: root
59+
MYSQL_DATABASE: processgraphql
60+
MYSQL_USER: processgraphql
61+
MYSQL_PASSWORD: processgraphql
62+
steps:
63+
- checkout
64+
65+
- run:
66+
name: Install Dependencies
67+
command: |
68+
rm composer.lock
69+
composer require phpunit/phpunit ^<<parameters.phpunit>> --dev
70+
composer update --with-all-dependencies
71+
composer install
72+
73+
# Our primary container isn't MYSQL so run a sleep command until it's ready.
74+
- run:
75+
name: Waiting for MySQL
76+
command: |
77+
for i in `seq 1 10`;
78+
do
79+
nc -z 127.0.0.1 3306 && echo Success && exit 0
80+
echo -n .
81+
sleep 1
82+
done
83+
echo Failed waiting for MySQL && exit 1
84+
85+
- run:
86+
name: Run Tests
87+
command: |
88+
composer exec -v "phpunit --bootstrap test/bootstrap.php --exclude-group performance test"
89+
90+
release:
91+
docker:
92+
- image: dadish/processgraphql-primary:0.4.1
93+
auth:
94+
username: $DOCKERHUB_USERNAME
95+
password: $DOCKERHUB_PASSWORD
96+
steps:
97+
- checkout
98+
- run:
99+
name: Install Dependencies
100+
command: |
101+
npm install
102+
rm -rf vendor
103+
composer install --no-dev
104+
- run:
105+
name: Release
106+
command: npm run release
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# syntax=docker/dockerfile:1
2+
FROM alpine:3.14
3+
4+
RUN apk update && apk upgrade
5+
6+
RUN apk add \
7+
git \
8+
openssh \
9+
tar \
10+
gzip \
11+
ca-certificates \
12+
nodejs \
13+
npm \
14+
php7 \
15+
php7-gd \
16+
php7-tokenizer \
17+
php7-dom \
18+
php7-mysqli \
19+
php7-xmlwriter \
20+
php7-xml \
21+
composer
22+
23+
ENTRYPOINT ["echo", "Started!"]

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ coverage
66
*.old
77
*.old/*
88
*.new
9-
*.new/*
9+
*.new/*
10+
11+
ProcessGraphQL.zip

Changelog.md

Lines changed: 174 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,179 @@
1-
# Changelog
1+
# [1.5.0-rc.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.3...v1.5.0-rc.4) (2021-07-02)
22

3-
All notable changes to this project will be documented in this file.
43

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4+
### Bug Fixes
5+
6+
* **ci:** use custom docker image for release run ([c67a34b](https://github.com/dadish-etudes/ProcessGraphQL/commit/c67a34b64fd7e9321316ecb7e30ba758dbc903d9))
7+
8+
# [1.5.0-rc.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.2...v1.5.0-rc.3) (2021-06-27)
9+
10+
11+
### Bug Fixes
12+
13+
* **ci:** fix release workflo ([8d525cb](https://github.com/dadish-etudes/ProcessGraphQL/commit/8d525cb2913e0b0ec73bd9a97c759ede64356a09))
14+
* **infra:** run release when test workflow finishes ([fc16ee0](https://github.com/dadish-etudes/ProcessGraphQL/commit/fc16ee08ebe8cdb333d12d0e552b84f5a5510e3a))
15+
16+
# [1.5.0-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.5.0-rc.1...v1.5.0-rc.2) (2021-05-09)
17+
18+
19+
### Bug Fixes
20+
21+
* **release:** remove custom commit-analyzer rule ([cc64a4d](https://github.com/dadish-etudes/ProcessGraphQL/commit/cc64a4da62a774ca18c642f793fa7a5e0a7118e4))
22+
23+
# [1.5.0-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.12-rc.2...v1.5.0-rc.1) (2021-05-09)
24+
25+
26+
### Features
27+
28+
* **build:** test minor version bump ([ed7e35f](https://github.com/dadish-etudes/ProcessGraphQL/commit/ed7e35f0164861f8aec1aac18d0f9ee7737a33ff))
29+
30+
## [1.4.12-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.12-rc.1...v1.4.12-rc.2) (2021-04-20)
31+
32+
33+
### Bug Fixes
34+
35+
* **release:** update the module version on release ([920d590](https://github.com/dadish-etudes/ProcessGraphQL/commit/920d590ef0ede21296598af7d4211675e69d43f9))
36+
37+
## [1.4.12-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.11...v1.4.12-rc.1) (2021-04-20)
38+
39+
40+
### Bug Fixes
41+
42+
* **workflow:** set proper names to github jobs ([cd408a1](https://github.com/dadish-etudes/ProcessGraphQL/commit/cd408a13c7de83058960e953ce36c4feeb53cab3))
43+
44+
## [1.4.11](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.10...v1.4.11) (2021-04-20)
45+
46+
47+
### Bug Fixes
48+
49+
* **infra:** make release job dependant on tests ([a5ff95c](https://github.com/dadish-etudes/ProcessGraphQL/commit/a5ff95cd2bbb740a60d89ebd5a805f1b66dab50c))
50+
* **infra:** merge stable into main after a release ([ae6a083](https://github.com/dadish-etudes/ProcessGraphQL/commit/ae6a083371f9eaea262175367a90bd754f0d53e5))
51+
* **infra:** merge stable into main after a release ([78f37db](https://github.com/dadish-etudes/ProcessGraphQL/commit/78f37dbbb737f38e8cc7dd98d6b7fcc1a3b00838))
52+
* **infra:** merge stable into main after a release ([fe722f2](https://github.com/dadish-etudes/ProcessGraphQL/commit/fe722f2700caedd62ae66794e3a6243b89776ee8))
53+
* **infra:** merge stable into main after a release ([bbe2854](https://github.com/dadish-etudes/ProcessGraphQL/commit/bbe2854d9832df96c3d0b61abefb398975777975))
54+
* **infra:** merge stable into main after a release ([3b0da51](https://github.com/dadish-etudes/ProcessGraphQL/commit/3b0da5107cd6d4642726f24dedf290376fdca36f))
55+
56+
## [1.4.10](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.9...v1.4.10) (2021-04-20)
57+
58+
59+
### Bug Fixes
60+
61+
* **infra:** merge stable into main after a release ([9538c21](https://github.com/dadish-etudes/ProcessGraphQL/commit/9538c21a4bab704fef0c44bc1a5442d35b3c9137))
62+
* **infra:** merge stable into main after a release ([0cd62b7](https://github.com/dadish-etudes/ProcessGraphQL/commit/0cd62b77990f019568f5be700c4fdb91d9059d77))
63+
64+
## [1.4.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.8...v1.4.9) (2021-04-20)
65+
66+
67+
### Bug Fixes
68+
69+
* **infra:** merge stable into main after release ([5370f37](https://github.com/dadish-etudes/ProcessGraphQL/commit/5370f373e80235532108ced23f6a05c2789e889e))
70+
71+
## [1.4.8](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.7...v1.4.8) (2021-04-20)
72+
73+
74+
### Bug Fixes
75+
76+
* **infra:** merge stable into main after a release ([87aa8a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/87aa8a700046fc38916d63e4d18003df7ce46986))
77+
78+
## [1.4.7](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.6...v1.4.7) (2021-04-20)
79+
80+
81+
### Bug Fixes
82+
83+
* **infra:** sync the main branch with stable after release ([16bb58a](https://github.com/dadish-etudes/ProcessGraphQL/commit/16bb58a0e9b49ff859b41adc434df0f0a30b7dac))
84+
85+
## [1.4.6](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5...v1.4.6) (2021-04-19)
86+
87+
## [1.4.6-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5...v1.4.6-rc.1) (2021-04-19)
88+
89+
## [1.4.5](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4...v1.4.5) (2021-04-19)
90+
91+
92+
### Bug Fixes
93+
94+
* **infra:** another commit message body test ([608922b](https://github.com/dadish-etudes/ProcessGraphQL/commit/608922be74805aab0be070af22d09c412587f6a3))
95+
* **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9))
96+
* **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404))
97+
98+
## [1.4.5-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.5-rc.1...v1.4.5-rc.2) (2021-04-19)
99+
100+
## [1.4.5-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4...v1.4.5-rc.1) (2021-04-19)
101+
102+
103+
### Bug Fixes
104+
105+
* **infra:** another commit message body test ([608922b](https://github.com/dadish-etudes/ProcessGraphQL/commit/608922be74805aab0be070af22d09c412587f6a3))
106+
* **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9))
107+
* **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404))
108+
109+
## [1.4.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3...v1.4.4) (2021-04-16)
110+
111+
## [1.4.4-rc.5](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.4...v1.4.4-rc.5) (2021-04-19)
112+
113+
114+
### Bug Fixes
115+
116+
* **infra:** testing how the body of this commit will appear in... ([a11e4a7](https://github.com/dadish-etudes/ProcessGraphQL/commit/a11e4a721fc44919c5648b2df35e8df59832e8f9))
117+
118+
## [1.4.4-rc.4](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.3...v1.4.4-rc.4) (2021-04-19)
119+
120+
121+
### Bug Fixes
122+
123+
* **todo:** remove extra empty line at the end ([7348abf](https://github.com/dadish-etudes/ProcessGraphQL/commit/7348abf138d1f42cf537537d64ddf347367c3404))
124+
125+
126+
## [1.4.4-rc.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.2...v1.4.4-rc.3) (2021-04-16)
127+
128+
## [1.4.4-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.1...v1.4.4-rc.2) (2021-04-16)
129+
130+
## [1.4.4-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.4-rc.1...v1.4.4-rc.2) (2021-04-16)
131+
132+
## [1.4.4-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3...v1.4.4-rc.1) (2021-04-16)
133+
134+
## [1.4.3](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.2...v1.4.3) (2021-04-08)
135+
136+
## [1.4.3-rc.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.3-rc.1...v1.4.3-rc.2) (2021-04-11)
137+
138+
## [1.4.3-rc.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.2...v1.4.3-rc.1) (2021-04-08)
139+
140+
141+
### Bug Fixes
142+
143+
* **release:** attempt to fix release config ([6467835](https://github.com/dadish-etudes/ProcessGraphQL/commit/6467835747f527159b692fc3db4a519d7110ec9c))
144+
* **release:** prerelease on main and release on stable ([8f7675e](https://github.com/dadish-etudes/ProcessGraphQL/commit/8f7675ea1b86dde79f57528336e7ec7478c46a1a))
145+
146+
## [1.4.2](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1...v1.4.2) (2021-04-08)
147+
148+
## [1.4.1](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.0...v1.4.1) (2021-02-27)
149+
150+
151+
### Bug Fixes
152+
153+
* **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199))
154+
* **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c))
155+
* **build:** remove the revert script ([1407ddf](https://github.com/dadish-etudes/ProcessGraphQL/commit/1407ddf4e05183d92e901442d29d989d14c05283))
156+
* **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6))
157+
* **changelog:** cleanup the Changelog.md ([df7c123](https://github.com/dadish-etudes/ProcessGraphQL/commit/df7c123e5bd6ff83d1d81b5aa849eb4ab48c207c))
158+
* **release:** append "(zip)" suffix to release asset label ([0dadc99](https://github.com/dadish-etudes/ProcessGraphQL/commit/0dadc997de641274424161aed2fedab791237887))
159+
160+
## [1.4.1-rc.10](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.9...v1.4.1-rc.10) (2021-02-27)
161+
162+
163+
### Bug Fixes
164+
165+
* **release:** append "(zip)" suffix to release asset label ([0dadc99](https://github.com/dadish-etudes/ProcessGraphQL/commit/0dadc997de641274424161aed2fedab791237887))
166+
167+
## [1.4.1-rc.9](https://github.com/dadish-etudes/ProcessGraphQL/compare/v1.4.1-rc.8...v1.4.1-rc.9) (2021-02-27)
168+
169+
170+
### Bug Fixes
171+
172+
* **build:** publish the module files as a release asset ([3c04dbf](https://github.com/dadish-etudes/ProcessGraphQL/commit/3c04dbf7701412f64c87eee48418e96f38b3c199))
173+
* **build:** release with semantic-release ([f671e33](https://github.com/dadish-etudes/ProcessGraphQL/commit/f671e334585319d6218d4e3e154ee6a76305161c))
174+
* **build:** remove the revert script ([1407ddf](https://github.com/dadish-etudes/ProcessGraphQL/commit/1407ddf4e05183d92e901442d29d989d14c05283))
175+
* **build:** trigger another release ([6847b7a](https://github.com/dadish-etudes/ProcessGraphQL/commit/6847b7a74c7e6b6487469d12f197c0d3f60a18e6))
176+
* **changelog:** cleanup the Changelog.md ([df7c123](https://github.com/dadish-etudes/ProcessGraphQL/commit/df7c123e5bd6ff83d1d81b5aa849eb4ab48c207c))
6177

7178
## [1.0.2] - 2019-11-19
8179

ProcessGraphQL.module

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class ProcessGraphQL extends Process implements Module {
1515
{
1616
return array(
1717
'title' => 'GraphQL',
18-
'version' => '1.3.0',
18+
'version' => '1.5.0-rc.4',
1919
'summary' => 'GraphQL for ProcessWire.',
2020
'href' => 'https://github.com/dadish/ProcessGraphql',
2121
'singular' => true,
2222
'autoload' => 'process=ProcessTemplate',
2323
'icon' => 'object-group',
24-
'requires' => array("PHP>=7.1", "ProcessWire>=3.0.62"),
24+
'requires' => array("PHP>=7.2", "ProcessWire>=3.0.62"),
2525
);
2626
}
2727

@@ -40,7 +40,7 @@ class ProcessGraphQL extends Process implements Module {
4040
* Custom types could be added bu just appending them into an array.
4141
* See the documentation of the library used by this module to learn more
4242
* @see The GraphQL lib https://github.com/webonyx/graphql-php
43-
* @param $schema
43+
* @param $schema
4444
* @return $schema
4545
*/
4646
public function ___modifySchema($schema) {
@@ -212,7 +212,7 @@ class ProcessGraphQL extends Process implements Module {
212212
* Custom fields could be added bu just appending them into an array.
213213
* See the documentation of the library used by this module to learn more
214214
* @see The GraphQL lib https://github.com/webonyx/graphql-php
215-
* @param $queryFields
215+
* @param $queryFields
216216
* @return $queryFields
217217
*/
218218
public function ___getQueryFields($queryFields)

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ProcessGraphQL
22

3-
[![Test Status](https://github.com/dadish/ProcessGraphQL/workflows/Test/badge.svg)](https://github.com/dadish/ProcessGraphQL/actions)
3+
[![CircleCI](https://circleci.com/gh/dadish-etudes/ProcessGraphQL.svg?style=svg)](https://circleci.com/gh/dadish-etudes/ProcessGraphQL)
4+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
45

56
[GraphQL][graphql] for [ProcessWire][pw].
67

0 commit comments

Comments
 (0)