Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/php-8.5-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: php-8.5-publish
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: ./.github/actions/docker-publish
name: Build and Publish (8.5)
with:
version: 8.5
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_TOKEN }}

validate:
runs-on: ubuntu-latest
needs: publish
container:
image: kirschbaumdevelopment/laravel-test-runner:8.5

steps:
- uses: actions/checkout@v2
- run: |
curl -fsSL https://goss.rocks/install | GOSS_VER=v${GOSS_VERSION} sh
goss --gossfile 8.5/goss.yaml validate
55 changes: 55 additions & 0 deletions 8.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM ubuntu:24.04
LABEL maintainer="Luis Dalmolin <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive

ENV PHP_VERSION="8.5"
ENV GOSS_VERSION="0.4.4"
ENV NODE_MAJOR="24"

RUN apt-get update && apt-get install -y software-properties-common curl ca-certificates gnupg
RUN add-apt-repository ppa:ondrej/php -y
RUN add-apt-repository ppa:git-core/ppa -y
RUN apt-get update -y
RUN apt-get install -y \
unzip \
php${PHP_VERSION}-cli \
php${PHP_VERSION}-gd \
php${PHP_VERSION}-ldap \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-mysql \
php${PHP_VERSION}-pgsql \
php${PHP_VERSION}-sqlite3 \
php${PHP_VERSION}-xml \
php${PHP_VERSION}-xsl \
php${PHP_VERSION}-zip \
php${PHP_VERSION}-curl \
php${PHP_VERSION}-soap \
php${PHP_VERSION}-gmp \
php${PHP_VERSION}-bcmath \
php${PHP_VERSION}-intl \
php${PHP_VERSION}-imap \
php${PHP_VERSION}-phpdbg \
php${PHP_VERSION}-bz2 \
php${PHP_VERSION}-redis

# composer
ENV COMPOSER_HOME=/composer
ENV PATH=./vendor/bin:/composer/vendor/bin:/root/.yarn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# mysql client
RUN apt-get install -y mysql-client

# git
RUN apt-get install -y git

# node
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install nodejs -y


# yarn
RUN npm install -g yarn
39 changes: 39 additions & 0 deletions 8.5/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
command:
node --version:
exit-status: 0
stdout:
- "v24"
yarn --version:
exit-status: 0
npm --version:
exit-status: 0
stdout:
- "11"
git --version:
exit-status: 0
composer --version:
exit-status: 0
php --version:
exit-status: 0
stdout:
- "8.5"
php -m:
exit-status: 0
stdout:
- bcmath
- calendar
- exif
- gd
- iconv
- imap
- intl
- ldap
- mbstring
- mysqli
- pcntl
- pdo_mysql
- pdo_pgsql
- pgsql
- soap
- xml
- zip
31 changes: 31 additions & 0 deletions 8.5/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Laravel Test Runner - PHP 8.5

Docker Container with PHP 8.5 and extensions to be compatible with most Laravel applications. Also installed on this container we have Composer and NodeJS/NPM/Yarn.

## Building and pushing the image

**Build**:

```
docker build --pull -t kirschbaumdevelopment/laravel-test-runner .
```

**Tag**:

```
docker tag kirschbaumdevelopment/laravel-test-runner:latest kirschbaumdevelopment/laravel-test-runner:8.5
```

**Push**:

```
docker push kirschbaumdevelopment/laravel-test-runner:8.5
```

## Credits

- [Pushpak Chhajed](https://github.com/pushpak1300)

## Sponsorship

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com) or [join us](https://careers.kirschbaumdevelopment.com)!
23 changes: 12 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@

This is a [docker container](https://cloud.docker.com/u/kirschbaumdevelopment/repository/docker/kirschbaumdevelopment/laravel-test-runner) for running Laravel tests in Github actions.

| PHP version | Link | Status | Container Tag |
| ---------- |-----------------------------------------------------------------------------------------------| ------ | ------------- |
| 8.4 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.4) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.4-publish/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.4 |
| 8.3 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.3) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.3-publish/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.3 |
| 8.2 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.2) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.2-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.2 |
| 8.1 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.1) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.1-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.1 |
| 8.0 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.0) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.0-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.0 |
| 7.4 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.4) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.4-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.4 |
| 7.3 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.3) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.3-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.3 |
| 7.2 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.2) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.2-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.2 |
| 7.1 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.1) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.1-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.1 |
| PHP version | Link | Status | Container Tag |
|-------------|-----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
| 8.5 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.5) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.5-publish/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.5 |
| 8.4 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.4) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.4-publish/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.4 |
| 8.3 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.3) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.3-publish/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.3 |
| 8.2 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.2) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.2-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.2 |
| 8.1 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.1) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.1-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.1 |
| 8.0 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.0) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-8.0-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:8.0 |
| 7.4 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.4) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.4-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.4 |
| 7.3 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.3) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.3-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.3 |
| 7.2 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.2) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.2-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.2 |
| 7.1 | [🔗](https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/7.1) | [![Actions Status](https://github.com/kirschbaum-development/laravel-test-runner-container/workflows/php-7.1-validate/badge.svg)](https://github.com/kirschbaum-development/laravel-test-runner-container/actions) | kirschbaumdevelopment/laravel-test-runner:7.1 |

You may want to check [this blog post](https://kirschbaumdevelopment.com/insights/laravel-github-actions) on how to use this container to run your Laravel tests with Github Actions.

Expand Down