Skip to content

Commit

Permalink
Merge pull request #28 from TYPO3GmbH/github-ci-workflow
Browse files Browse the repository at this point in the history
Add Github CI workflow
  • Loading branch information
mbrodala authored Mar 22, 2024
2 parents 22b62e7 + 0287984 commit cbdb6d0
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 140 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master

jobs:
build:
name: 'PHP ${{ matrix.php }}, TYPO3 ${{ matrix.typo3 }}'
runs-on: ubuntu-latest

strategy:
matrix:
php:
- '8.1'
- '8.2'
typo3:
- ^11.5

steps:
- uses: actions/checkout@v4

- name: Build
env:
PHP_VERSION: ${{matrix.php}}
TYPO3_VERSION: ${{matrix.typo3}}
run: docker-compose run --rm app composer build

- name: Cleanup
if: ${{ always() }}
run: docker-compose down --volumes
61 changes: 0 additions & 61 deletions Build/bamboo-container-functions.sh

This file was deleted.

37 changes: 0 additions & 37 deletions Build/bamboo.sh

This file was deleted.

36 changes: 0 additions & 36 deletions Build/docker-compose-bamboo.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Build/php_versions.sh

This file was deleted.

5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
}
},
"scripts": {
"build": [
"@composer require --no-progress --ansi --update-with-dependencies typo3/cms-core $TYPO3_VERSION",
"@lint",
"@test"
],
"composer:lint": [
"@composer validate --ansi",
"@composer normalize --no-update-lock --dry-run"
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ version: '3'

services:
app:
image: thecodingmachine/php:8.1-v4-cli
image: thecodingmachine/php:${PHP_VERSION:-8.1}-v4-cli
environment:
TYPO3_VERSION: ${TYPO3_VERSION:-^11.5}
typo3DatabaseName: typo3
typo3DatabaseHost: mysql
typo3DatabaseUsername: root
typo3DatabasePassword: root
STARTUP_COMMAND_1: sudo apt update && sudo apt install --yes graphicsmagick
depends_on:
mysql:
condition: service_healthy
Expand Down

0 comments on commit cbdb6d0

Please sign in to comment.