Skip to content

Commit

Permalink
Feature: allow public calendars (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi authored Oct 29, 2023
1 parent 7b79827 commit 275bada
Show file tree
Hide file tree
Showing 15 changed files with 1,383 additions and 1,115 deletions.
35 changes: 6 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,15 @@ jobs:
docker-php-ext-install gd
- name: Install Composer
run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: composer-php${{ matrix.php }}-highest-
restore-keys: |
composer-php${{ matrix.php }}-highest-
composer-
- name: Validate Composer
run: composer validate
- name: Install highest dependencies with Composer
run: composer update --no-progress --ansi
- name: Update to highest dependencies with Composer
run: composer update --no-interaction --no-progress --ansi
- name: Analyze
run: PHP_CS_FIXER_IGNORE_ENV=True vendor/bin/php-cs-fixer fix --ansi

phpunit:
name: PHPUnit (PHP ${{ matrix.php }} Deps ${{ matrix.dependencies }})
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
container:
image: php:${{ matrix.php }}-alpine
Expand Down Expand Up @@ -78,9 +70,6 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
dependencies:
- lowest
- highest
fail-fast: false
steps:
- name: Checkout
Expand All @@ -93,21 +82,9 @@ jobs:
docker-php-ext-install pdo pdo_mysql intl gd
- name: Install Composer
run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: composer-php${{ matrix.php }}-${{ matrix.dependencies }}-
restore-keys: |
composer-php${{ matrix.php }}-${{ matrix.dependencies }}-
composer-
- name: Install lowest dependencies with Composer
if: matrix.dependencies == 'lowest'
run: composer update --no-progress --prefer-stable --prefer-lowest --ansi
- name: Install highest dependencies with Composer
if: matrix.dependencies == 'highest'
run: composer update --no-progress --ansi
- name: Install dependencies with Composer
run: composer install --no-progress --no-interaction --ansi
- name: Migrate database
run: bin/console doctrine:schema:update --force --no-interaction
run: bin/console doctrine:schema:update --force --no-interaction --complete
- name: Run tests with PHPUnit
run: vendor/bin/phpunit --process-isolation --colors=always
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"require": {
"php": "^8.0",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-gd": "*",
"ext-iconv": "*",
"composer-runtime-api": "^2",
"dantsu/php-osm-static-api": "^0.5.0",
"doctrine/annotations": "^1.12",
Expand All @@ -32,6 +32,7 @@
"symfony/property-access": "^5.4.21",
"symfony/property-info": "^5.4.21",
"symfony/proxy-manager-bridge": "^5.4.21",
"symfony/runtime": "^5.4.21",
"symfony/security-bundle": "^5.4.21",
"symfony/security-guard": "^5.4.21",
"symfony/serializer": "^5.4.21",
Expand Down Expand Up @@ -62,7 +63,8 @@
},
"allow-plugins": {
"composer/package-versions-deprecated": true,
"symfony/flex": true
"symfony/flex": true,
"symfony/runtime": true
}
},
"autoload": {
Expand Down
Loading

0 comments on commit 275bada

Please sign in to comment.