From 117612c2002bee8859c6a3af3916a762cf6837fb Mon Sep 17 00:00:00 2001 From: Nick Wiegers Date: Wed, 15 Jan 2025 13:25:19 +0100 Subject: [PATCH] Add environment step --- .gitea/workflows/quality.yml | 10 ++++++++++ .idea/.gitignore | 8 ++++++++ .idea/Quality.iml | 8 ++++++++ .idea/material_theme_project_new.xml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/php.xml | 19 +++++++++++++++++++ .idea/vcs.xml | 6 ++++++ 7 files changed, 71 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/Quality.iml create mode 100644 .idea/material_theme_project_new.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/vcs.xml diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml index a118c58..350bd1f 100644 --- a/.gitea/workflows/quality.yml +++ b/.gitea/workflows/quality.yml @@ -9,6 +9,10 @@ on: required: false type: string default: ${{ vars.REGISTRY_PASSWORD }} + environment_path: + required: false + type: string + default: .env.phpstan jobs: quality: @@ -22,6 +26,12 @@ jobs: - name: Setup composer uses: https://git.qlic.nl/actions/setup-composer@v1 + - name: Copy ${{ inputs.environment_path }} to .env if it exists + run: | + if [ -f ${{ inputs.environment_path }} ]; then + cp ${{ inputs.environment_path }} .env + fi + - name: Run PHPStan run: ./vendor/bin/phpstan analyse --memory-limit=2G diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/Quality.iml b/.idea/Quality.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/Quality.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml new file mode 100644 index 0000000..adec889 --- /dev/null +++ b/.idea/material_theme_project_new.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..cc04fd8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..f324872 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file