Skip to content

Commit

Permalink
Check CS and execute tests using docker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag committed Nov 2, 2021
1 parent 709ec6d commit 7fc7ca6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-coding-standards.yml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions .github/workflows/docker-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7fc7ca6

Please sign in to comment.