mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
CI builds
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
name: Development Builds
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore: [ master, main ]
|
||||
|
||||
jobs:
|
||||
build-develop:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.3
|
||||
extensions: opcache, gd
|
||||
tools: composer:v2
|
||||
coverage: none
|
||||
env:
|
||||
COMPOSER_TOKEN: ${{ secrets.GLOBAL_TOKEN }}
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo apt-get -y update -qq < /dev/null > /dev/null
|
||||
sudo apt-get -y install -qq git zip < /dev/null > /dev/null
|
||||
- name: Get composer cache directory
|
||||
id: composer-cache
|
||||
run: echo "::set-output name=dir::$(composer config cache-files-dir -d bin/builder)"
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Build Gantry packages
|
||||
run: composer build-dev
|
||||
- name: Upload files to S3
|
||||
if: success()
|
||||
uses: ochanje210/s3-upload-action@master
|
||||
with:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY_SECURE}}
|
||||
AWS_S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
||||
SOURCE_DIR: 'dist'
|
||||
DEST_DIR: 'nightly'
|
||||
@@ -8,6 +8,7 @@ jobs:
|
||||
build:
|
||||
if: "!github.event.release.prerelease"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
@@ -9,12 +9,11 @@ on:
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php: [ 8.0, 7.4, 7.3]
|
||||
os: [ubuntu-latest]
|
||||
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
|
||||
Reference in New Issue
Block a user