From 45695bde06902fb3fb0e1d9c7897a56de6fcf460 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 3 Jan 2025 15:38:07 +1100 Subject: [PATCH] Add building web assets to CI/CD --- .gitea/workflows/build_docker.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build_docker.yaml b/.gitea/workflows/build_docker.yaml index ab6c25d..fed74b7 100644 --- a/.gitea/workflows/build_docker.yaml +++ b/.gitea/workflows/build_docker.yaml @@ -16,7 +16,8 @@ jobs: name: Test Application runs-on: docker-${{ matrix.arch }} container: - image: gitea.dege.au/docker/php:8.3-fpm-ldap-test + image: docker:dind + privileged: true steps: - name: Environment Setup @@ -24,7 +25,7 @@ jobs: # If we have a proxy use it if [ -n "${HTTP_PROXY}" ]; then echo "HTTP PROXY [${HTTP_PROXY}]"; sed -i -e s'/https/http/' /etc/apk/repositories; fi # Some pre-reqs - apk add git nodejs + apk add git nodejs npm ## Some debugging info # env|sort @@ -33,20 +34,21 @@ jobs: - name: Run Tests run: | + set -x mv .env.testing .env # Install Composer and project dependencies. mkdir -p ${COMPOSER_HOME} if [ -n "${{ secrets.COMPOSER_GITHUB_TOKEN }}" ]; then composer config github-oauth.github.com ${{ secrets.COMPOSER_GITHUB_TOKEN }}; fi composer install # Generate an application key. Re-cache. - php artisan key:generate + # php artisan key:generate # php artisan migrate # php artisan db:seed # run laravel tests - XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text --colors=never + # XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text --colors=never # Build assets - nmp i - nmp run prod + npm i + npm run prod echo 'TESTS RUN' > TESTS.RUN ls -al