Skip to content

Generate token

Generate token #202

Workflow file for this run

name: HorizontCMS CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
args: --ignore-platform-reqs
- name: Check PHP syntax errors
uses: overtrue/[email protected]
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
with:
args: --ignore-platform-reqs
- name: Force installed variable
run: export INSTALLED=YES
- name: Run unit tests
run: XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite Unit,Integration --coverage-clover reports/coverage.xml
# - name: Upload coverage
# run: |
# if [ -f "reports/coverage.xml" ]; then vendor/bin/codacycoverage clover reports/coverage.xml; fi
- name: Show versions
run: |
php artisan --version
php artisan hcms:version
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3']
docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ttimot24/horizont-cms:latest