From 3aef7c2ec92ca132caa0cf1163a7ddab09417b46 Mon Sep 17 00:00:00 2001 From: Jakob Givoni Date: Tue, 9 Jan 2024 11:48:36 +0100 Subject: [PATCH] support-php-83 --- .env.example | 4 ++++ .github/workflows/ci.yml | 4 ++-- .gitignore | 1 + LICENSE | 2 +- docker-compose.yml | 4 ++++ 5 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..3c16935 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +# Copy this file to .env + +# Change PHP version to test another version locally, then recreate the docker container +# PHP_VERSION="8.1" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bc15a4..73d51e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: job1: strategy: matrix: - php_version: ["8.1", "8.2"] + php_version: ["8.1", "8.2", "8.3"] name: PhpStan static analyzer ${{ matrix.php_version }} runs-on: ubuntu-latest steps: @@ -39,7 +39,7 @@ jobs: job2: strategy: matrix: - php_version: ["8.1", "8.2"] + php_version: ["8.1", "8.2", "8.3"] name: PhpUnit unit tests ${{ matrix.php_version }} runs-on: ubuntu-latest steps: diff --git a/.gitignore b/.gitignore index f43db63..11e9c13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ composer.lock vendor .phpunit.cache +.env diff --git a/LICENSE b/LICENSE index 78b7b92..5459974 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Jakob Givoni +Copyright (c) 2023-2024 Jakob Givoni Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docker-compose.yml b/docker-compose.yml index a2027f3..7c410d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,10 @@ services: build: context: . dockerfile: ./Dockerfile + args: + PHP_VERSION: "${PHP_VERSION}" + env_file: + - .env volumes: - .:/app command: [ "tail", "-f", "/dev/null" ]