Skip to content

Build

Build #20

Workflow file for this run

name: Build
on:
push:
branches:
- master
- dev
pull_request:
branches:
- '*'
schedule:
- cron: "0 7 2 * *"
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: gd, zip
coverage: xdebug
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist
- name: Run build
run: |
composer build
- name: Run check
run: |
composer check
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Update from script"
committer: GitHub <[email protected]>
title: "Update from script"
body: "This is an automated pull request to update from script"
branch: build-${{ github.run_id }}