Add building web assets to CI/CD
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Failing after 17s
Create Docker Image / Build Docker Image (arm64) (push) Has been skipped
Create Docker Image / Build Docker Image (x86_64) (push) Has been skipped
Create Docker Image / Final Docker Image Manifest (push) Has been skipped
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Failing after 17s
Create Docker Image / Build Docker Image (arm64) (push) Has been skipped
Create Docker Image / Build Docker Image (x86_64) (push) Has been skipped
Create Docker Image / Final Docker Image Manifest (push) Has been skipped
This commit is contained in:
parent
3f2cd56884
commit
8326416d90
@ -6,45 +6,49 @@ env:
|
|||||||
DOCKER_HOST: tcp://127.0.0.1:2375
|
DOCKER_HOST: tcp://127.0.0.1:2375
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# test:
|
test:
|
||||||
# strategy:
|
strategy:
|
||||||
# matrix:
|
matrix:
|
||||||
# arch:
|
arch:
|
||||||
# - x86_64
|
- x86_64
|
||||||
# # arm64
|
# arm64
|
||||||
#
|
|
||||||
# name: Test Application
|
name: Test Application
|
||||||
# runs-on: docker-${{ matrix.arch }}
|
runs-on: docker-${{ matrix.arch }}
|
||||||
# container:
|
container:
|
||||||
# image: gitea.dege.au/docker/php:8.3-fpm-ldap-test
|
image: gitea.dege.au/docker/php:8.3-fpm-ldap-test
|
||||||
#
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Environment Setup
|
- name: Environment Setup
|
||||||
# run: |
|
run: |
|
||||||
# # If we have a proxy use it
|
# 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
|
if [ -n "${HTTP_PROXY}" ]; then echo "HTTP PROXY [${HTTP_PROXY}]"; sed -i -e s'/https/http/' /etc/apk/repositories; fi
|
||||||
# # Some pre-reqs
|
# Some pre-reqs
|
||||||
# apk add git nodejs
|
apk add git nodejs
|
||||||
# ## Some debugging info
|
## Some debugging info
|
||||||
# # env|sort
|
# env|sort
|
||||||
#
|
|
||||||
# - name: Code Checkout
|
- name: Code Checkout
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
#
|
|
||||||
# - name: Run Tests
|
- name: Run Tests
|
||||||
# run: |
|
run: |
|
||||||
# mv .env.testing .env
|
mv .env.testing .env
|
||||||
# # Install Composer and project dependencies.
|
# Install Composer and project dependencies.
|
||||||
# mkdir -p ${COMPOSER_HOME}
|
mkdir -p ${COMPOSER_HOME}
|
||||||
# if [ -n "${{ secrets.COMPOSER_GITHUB_TOKEN }}" ]; then echo ${{ secrets.COMPOSER_GITHUB_TOKEN }} > ${COMPOSER_HOME}/auth.json; fi
|
if [ -n "${{ secrets.COMPOSER_GITHUB_TOKEN }}" ]; then composer config github-oauth.github.com ${{ secrets.COMPOSER_GITHUB_TOKEN }}; fi
|
||||||
# composer install
|
composer install
|
||||||
# # Generate an application key. Re-cache.
|
# Generate an application key. Re-cache.
|
||||||
# php artisan key:generate
|
php artisan key:generate
|
||||||
# php artisan migrate
|
# php artisan migrate
|
||||||
# php artisan db:seed
|
# php artisan db:seed
|
||||||
# # run laravel tests
|
# run laravel tests
|
||||||
# touch storage/app/test/*ZIP storage/app/test/file/*
|
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
|
||||||
|
echo 'TESTS RUN' > TESTS.RUN
|
||||||
|
ls -al
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@ -52,7 +56,7 @@ jobs:
|
|||||||
arch:
|
arch:
|
||||||
- x86_64
|
- x86_64
|
||||||
- arm64
|
- arm64
|
||||||
# needs: [test]
|
needs: [test]
|
||||||
|
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
runs-on: docker-${{ matrix.arch }}
|
runs-on: docker-${{ matrix.arch }}
|
||||||
@ -96,6 +100,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo ${GITHUB_SHA::8} > VERSION
|
echo ${GITHUB_SHA::8} > VERSION
|
||||||
rm -rf .git* tests/ storage/app/test/
|
rm -rf .git* tests/ storage/app/test/
|
||||||
|
ls -al
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
Loading…
Reference in New Issue
Block a user