From 7fc7ca68216de479a0b3de66fd9e94bc1008f7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20J=2E=20Garc=C3=ADa=20Lagar?= Date: Tue, 2 Nov 2021 12:29:19 +0100 Subject: [PATCH] Check CS and execute tests using docker environment --- .github/workflows/docker-coding-standards.yml | 20 +++++++++++++++++++ .github/workflows/docker-unit-tests.yml | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/docker-coding-standards.yml create mode 100644 .github/workflows/docker-unit-tests.yml diff --git a/.github/workflows/docker-coding-standards.yml b/.github/workflows/docker-coding-standards.yml new file mode 100644 index 00000000..f8dfff6d --- /dev/null +++ b/.github/workflows/docker-coding-standards.yml @@ -0,0 +1,20 @@ +name: "docker coding standards" + +on: ["pull_request", "push"] + +jobs: + coding-standards: + name: "docker coding standards" + runs-on: "ubuntu-latest" + steps: + - name: "checkout" + uses: "actions/checkout@v2" + + - name: "build the environment" + run: "dev/bin/docker-compose build" + + - name: "install dependencies" + run: "dev/bin/php composer install" + + - name: "checking coding standards" + run: "dev/bin/php php-cs-fixer fix --dry-run --diff --ansi" diff --git a/.github/workflows/docker-unit-tests.yml b/.github/workflows/docker-unit-tests.yml new file mode 100644 index 00000000..1303ddee --- /dev/null +++ b/.github/workflows/docker-unit-tests.yml @@ -0,0 +1,20 @@ +name: "docker unit tests" + +on: ["pull_request", "push"] + +jobs: + coding-standards: + name: "docker unit tests" + runs-on: "ubuntu-latest" + steps: + - name: "checkout" + uses: "actions/checkout@v2" + + - name: "build the environment" + run: "dev/bin/docker-compose build" + + - name: "install dependencies" + run: "dev/bin/php composer install" + + - name: "running unit tests" + run: "dev/bin/php-test vendor/bin/simple-phpunit"