Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed Jun 5, 2023
2 parents f181f79 + 6f6e4a7 commit 3c467b9
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 26 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
tmp/
vendor/
composer.lock
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

0 comments on commit 3c467b9

Please sign in to comment.