-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from atk4/release/0.3
Releasing 0.3 into master
- Loading branch information
Showing
15 changed files
with
628 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
engines: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- php | ||
fixme: | ||
enabled: true | ||
phpmd: | ||
enabled: true | ||
exclude_fingerprints: | ||
- 42b4b225a9c6cf44b27182f397e2b7ad # REMOVE this one when replacing with something useful | ||
checks: | ||
CyclomaticComplexity: | ||
enabled: false | ||
Design/TooManyPublicMethods: | ||
enabled: false | ||
Design/TooManyMethods: | ||
enabled: false | ||
Design/NpathComplexity: | ||
enabled: false | ||
Design/WeightedMethodCount: | ||
enabled: false | ||
Design/LongClass: | ||
enabled: false | ||
Controversial/CamelCaseMethodName: | ||
enabled: false | ||
Controversial/CamelCaseParameterName: | ||
enabled: false | ||
Controversial/CamelCasePropertyName: | ||
enabled: false | ||
Controversial/CamelCaseVariableName: | ||
enabled: false | ||
Controversial/CamelCaseClassName: | ||
enabled: false | ||
Controversial/Superglobals: # we use SESSION global | ||
enabled: false | ||
Naming/ShortVariable: | ||
enabled: false | ||
CleanCode/ElseExpression: | ||
enabled: false | ||
Design/LongMethod: # sometimes we have longer methods than 100 rows | ||
enabled: false | ||
radon: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- src/** | ||
exclude_paths: | ||
- docs/** | ||
- tests/** | ||
- vendor/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# See https://github.com/release-drafter/release-drafter#configuration | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Bundler | ||
|
||
on: create | ||
|
||
jobs: | ||
autocommit: | ||
name: Update to stable dependencies | ||
if: startsWith(github.ref, 'refs/heads/release/') | ||
runs-on: ubuntu-latest | ||
container: | ||
image: atk4/image:latest # https://github.com/atk4/image | ||
steps: | ||
- uses: actions/checkout@master | ||
- run: echo ${{ github.ref }} | ||
- name: Update to stable dependencies | ||
run: | | ||
# replaces X keys with X-release keys | ||
jq '. as $in | reduce (keys_unsorted[] | select(endswith("-release")|not)) as $k ({}; . + {($k) : (($k + "-release") as $kr | $in | if has($kr) then .[$kr] else .[$k] end) } )' < composer.json > tmp && mv tmp composer.json | ||
v=$(echo ${{ github.ref }} | cut -d / -f 4) | ||
echo "::set-env name=version::$v" | ||
- uses: teaminkling/autocommit@master | ||
with: | ||
commit-message: Setting release dependencies | ||
- uses: ad-m/github-push-action@master | ||
with: | ||
branch: ${{ github.ref }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: pull-request | ||
uses: romaninsh/pull-request@master | ||
with: | ||
source_branch: "release/${{ env.version }}" | ||
destination_branch: "master" # If blank, default: master | ||
pr_title: "Releasing ${{ env.version }} into master" | ||
pr_body: | | ||
- [ ] Review changes (must include stable dependencies) | ||
- [ ] Merge this PR into master (will delete ${{ github.ref }}) | ||
- [ ] Go to Releases and create TAG from master | ||
Do not merge master into develop | ||
pr_reviewer: "romaninsh" | ||
pr_assignee: "romaninsh" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: toolmantim/release-drafter@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Unit Testing | ||
|
||
on: | ||
pull_request: | ||
branches: '*' | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
unit-test: | ||
name: Unit Testing | ||
runs-on: ubuntu-latest | ||
container: | ||
image: atk4/image:${{ matrix.php }} # https://github.com/atk4/image | ||
strategy: | ||
matrix: | ||
php: ['7.2', '7.3', 'latest'] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
# need this to trick composer | ||
- run: php --version | ||
- run: "git branch develop; git checkout develop" | ||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Run Tests | ||
run: | | ||
mkdir -p build/logs | ||
- name: SQLite Testing | ||
run: vendor/bin/phpunit --configuration phpunit.xml --coverage-text | ||
|
||
- uses: codecov/codecov-action@v1 | ||
if: matrix.php == 'latest' | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: build/logs/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Pre-releases | ||
|
||
### 0.2 More flexible REST lookups | ||
|
||
- add support for looking up by fields other than ID: "api/country/code:GB" | ||
|
||
### 0.1 Initial release | ||
|
||
- added post(), get(), etc | ||
- added rest() and integration with Model Data | ||
- first working prototype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.