From d9cc15fdc2502721b2bdf368accabc83bff11711 Mon Sep 17 00:00:00 2001 From: Chicory Date: Fri, 26 Jul 2024 18:36:41 +0300 Subject: [PATCH] Test workflow added --- .gitea/workflows/run-full-tests.yaml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/run-full-tests.yaml diff --git a/.gitea/workflows/run-full-tests.yaml b/.gitea/workflows/run-full-tests.yaml new file mode 100644 index 0000000..9a891fb --- /dev/null +++ b/.gitea/workflows/run-full-tests.yaml @@ -0,0 +1,30 @@ +name: Run code tests +run-name: Run code tests +on: + push: + workflow_dispatch: + +jobs: + Run-code-test: + container: + image: "ch1c0ry/php8-cli-actrunner:latest" + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install Composer dependencies + uses: "https://github.com/ramsey/composer-install@v3" + with: + composer-options: "--optimize-autoloader" + + - name: Check code style + run: | + composer run code-style-check + + - name: Run analyzer + run: | + composer run analyze-code + + - name: Run unit tests + run: | + composer run run-unit-tests