Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazz-Man committed Sep 26, 2022
2 parents 4b059ad + 4564432 commit 35e5743
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create Release
on:
push:
tags:
- '*'
# workflow_run:
# workflows: [reviewdog]
# types:
# - completed
jobs:
create-release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Build Changelog
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ github.token }}

- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{steps.changelog.outputs.changelog}}
47 changes: 47 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: ReviewDog
on:
push:
branches:
- master
- develop
pull_request:

jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: igbinary
coverage: none
# tools: phpmd, psalm

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress -o

- name: Setup reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest

- name: Reviewdog GitHub Check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: reviewdog -reporter=github-check -filter-mode=nofilter -fail-on-error
18 changes: 18 additions & 0 deletions .reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
runner:
phpmd:
cmd: ./vendor/bin/phpmd . checkstyle phpmd.ruleset.xml --exclude 'cache/*,vendor/*,stubs/*' --baseline-file phpmd.baseline.xml
name: phpmd
format: checkstyle
level: warning

phpstan:
cmd: ./vendor/bin/phpstan --error-format=checkstyle
format: checkstyle
name: phpstan
level: warning

psalm:
cmd: ./vendor/bin/psalm --config=psalm.xml --no-progress --use-baseline=psalm-baseline.xml --output-format=checkstyle
format: checkstyle
name: psalm
level: warning

0 comments on commit 35e5743

Please sign in to comment.