mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-23 22:01:49 +01:00
Add test stage
This commit is contained in:
parent
16225e441d
commit
e9a517fde8
@ -5,7 +5,6 @@ tests
|
||||
.editorconfig
|
||||
.env.example
|
||||
.env.testing
|
||||
.env.travis
|
||||
.gitattributes
|
||||
.gitignore
|
||||
.styleci.yml
|
||||
@ -13,5 +12,4 @@ tests
|
||||
changelog.md
|
||||
Dockerfile
|
||||
LICENSE
|
||||
phpunit.xml
|
||||
README.md
|
||||
|
@ -20,6 +20,13 @@ COPY artisan composer.json composer.lock ./
|
||||
COPY database ./database
|
||||
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
|
||||
|
||||
FROM --platform=${BUILDPLATFORM} vendor AS test
|
||||
COPY . .
|
||||
RUN mv .env.travis .env
|
||||
RUN composer install
|
||||
RUN php artisan key:generate
|
||||
ENTRYPOINT [ "/srv/vendor/bin/phpunit" ]
|
||||
|
||||
FROM debian:${DEBIAN_VERSION}
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user