feat: renaming, add pipeline

This commit is contained in:
2024-12-02 12:55:09 +01:00
parent dc264b89a1
commit 6ad3f92a1a
6 changed files with 356 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
name: Build
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
PHP_VERSION: '8.3' # set this to the PHP version to use
COMPOSER_ALLOW_SUPERUSER: 1
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@7c0b4c8c8ebed23eca9ec2802474895d105b11bc
with:
php-version: ${{ env.PHP_VERSION }}
- name: Check if composer.json exists
id: check_files
uses: andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673
with:
files: 'composer.json'
- name: Run composer install if composer.json exists
if: steps.check_files.outputs.files_exists == 'true'
run: |
rm composer.lock
composer validate --no-check-publish