Skip to content

Commit

Permalink
Merge branch 'master' into master_d
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-s committed Feb 21, 2024
2 parents 60b3f25 + c24980a commit 9533d21
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .forgejo/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit tests
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.2','8.3']

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, dom, fileinfo # Add your extensions here.
coverage: xdebug

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

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

- name: Prepare tests
run: composer run-script tests_prepare

- name: Run tests
run: composer run-script tests_run
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.2']
php-versions: ['8.2','8.3']

steps:
- name: Checkout code
Expand All @@ -32,5 +32,5 @@ jobs:
- name: Prepare tests
run: composer run-script tests_prepare

# - name: Run tests
# run: composer run-script tests_run
- name: Run tests
run: composer run-script tests_run
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ before_script:
- mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
- echo "memory_limit = -1" > /usr/local/etc/php/conf.d/test.ini

test:php-8.0:
test:php-8.2:
stage: test
image: php:8.0
image: php:8.2
script:
- bash ./bin/prepare_tests.sh && bash ./bin/run_tests.sh
tags:
Expand Down
Empty file added .travis.yml
Empty file.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Seafile PHP SDK

This is a PHP package for accessing [Seafile Web API](https://www.seafile.com/).
This is a PHP package for accessing [Seafile Web API](https://download.seafile.com/published/web-api/home.md).

## German Web Application Developer Available for Hire!

No marketing skills whatsoever, but low rates, 20+ years of experience, and "german work attitude" -- whatever you associate with that.
No marketing skills whatsoever, but low rates, 20+ years of experience, and "german work attitude".

Get in touch now: https://sdo.sh/#contact

Expand Down

0 comments on commit 9533d21

Please sign in to comment.