Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very simple text annotation support #26

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Tests"

on: [pull_request]
jobs:
tests:
name: Unit & E2E
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
submodules: recursive

- run: git checkout HEAD^2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build image
uses: docker/build-push-action@v3
with:
context: .
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Start and run test
run: |
docker compose up -d
sleep 10
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile-php8 → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/imagic
COPY ./tests /code/tests
COPY ./src /code/src
COPY ./phpunit.xml /code/phpunit.xml
COPY ./psalm.xml /code/psalm.xml
COPY ./pint.json /code/pint.json

RUN echo extension=imagick.so >> /usr/local/etc/php/conf.d/imagick.ini

CMD [ "sh", "-c", "/code/vendor/bin/phpunit --verbose --configuration /code/phpunit.xml && /code/vendor/bin/psalm --show-info=true" ]
CMD [ "sh", "-c", "/code/vendor/bin/phpunit --verbose --configuration /code/phpunit.xml && /code/vendor/bin/pint -v --test" ]
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"psr-4": {"Utopia\\Image\\":"src/Image"}
},
"scripts": {
"lint": "./vendor/bin/pint --test",
"test": "./vendor/bin/phpunit --verbose --configuration ./phpunit.xml",
"lint": "./vendor/bin/pint --test -v",
"format": "./vendor/bin/pint",
"check": "./vendor/bin/phpstan analyse --level max src tests"
},
Expand All @@ -18,7 +19,6 @@
},
"require-dev": {
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "4.13.1",
"phpstan/phpstan": "1.9.x-dev",
"laravel/pint": "1.2.*"
},
Expand Down
Loading