Skip to content

Commit

Permalink
Merge pull request #5 from bitExpert/feature/ci_pipeline
Browse files Browse the repository at this point in the history
Setup basic CI pipeline
  • Loading branch information
shochdoerfer authored Jun 14, 2024
2 parents b77e6ec + 111557b commit 6fe56dc
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ci
on:
pull_request:
push:
branches:
- "master"

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8.1', '8.2', '8.3']

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Configure PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
coverage: xdebug
extensions: bcmath, gd

- name: Install Composer dependencies
run: composer install

- name: Codesniffer
run: composer cs-check

- name: Static Code Analysis
run: composer analyze

- name: Unittests
run: composer test
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"symfony/dotenv": "^5.4 || ^6.0",
"symfony/flex": "^2.2.2",
"symfony/intl": "^5.4 || ^6.0",
"symfony/web-profiler-bundle": "^5.4 || ^6.0",
"vimeo/psalm": "5.9.0"
"symfony/web-profiler-bundle": "^5.4 || ^6.0"
},
"conflict": {
"symfony/framework-bundle": "6.2.8"
Expand Down

0 comments on commit 6fe56dc

Please sign in to comment.