Skip to content

Commit

Permalink
Merge pull request #1 from shopware/brain/prepare-github-release
Browse files Browse the repository at this point in the history
BRAIN: Prepare GitHub Release
  • Loading branch information
lernhart authored Jan 18, 2024
2 parents 6717a47 + 8003c82 commit 944dd85
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: 'fix(deps): '
groups:
all:
patterns:
- '*'
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: 'fix(deps): '
groups:
all:
patterns:
- '*'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: 'fix(deps): '
groups:
all:
patterns:
- '*'
27 changes: 27 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: JS
on:
pull_request:
paths:
- '**/*.js'
- '**/*.ts'
- .github/workflows/js.yml
push:
paths:
- '**/*.js'
- '**/*.ts'
branches:
- main

jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci --no-audit --prefer-offline
- name: Run ESLint
run: npm run eslint
68 changes: 68 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: PHP
on:
pull_request:
paths:
- '**/*.php'
- .github/workflows/php.yml
push:
paths:
- '**/*.php'
branches:
- main

jobs:
ecs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run ECS
run: composer ecs

phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Generate PHPStan cache
run: php bin/console cache:clear
- name: Run PHPStan
run: composer phpstan

phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: pcov
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPUnit
run: composer phpunit

infection:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: pcov
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run Infection
run: composer infection

0 comments on commit 944dd85

Please sign in to comment.