Skip to content

Commit

Permalink
Merge branch 'feature/3574-github-actions' of github.com:CalderaWP/Ca…
Browse files Browse the repository at this point in the history
…ldera-Forms into 3578-phpunit-7
  • Loading branch information
Shelob9 committed Jul 6, 2020
2 parents 3ebdc81 + 5af4bc8 commit 28d4018
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: E2E Tests

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install

- name: Install js packages
run: yarn

- name: Refresh assets build
run: yarn build

- name: Install wordpress
run: composer wp:install

- name: Activate Caldera Forms
run: composer wp:activate

- name: Tests setup
run: composer test:setup

- name: Run e2e tests
run: yarn test:e2e:ci
26 changes: 26 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: JS Tests

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install

- name: Install js packages
run: yarn

- name: Refresh assets build
run: yarn build

- name: Run Jest Tests
run: yarn test:once
38 changes: 38 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PHP Tests

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install

- name: Install js packages
run: yarn

- name: Refresh assets build
run: yarn build

- name: Install wordpress
run: composer wp:install

- name: Activate Caldera Forms
run: composer wp:activate

- name: Tests setup
run: composer test:setup

- name: Run test unit
run: composer test:unit

- name: Run test wp
run: composer wp:tests
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"scripts": {
"test:php": "composer test:unit && composer wp:tests",
"dev:install": "composer install && yarn install && composer wp:install && composer wp:activate && composer test:setup",
"dev:install": "composer install && yarn && composer wp:install && composer wp:activate && composer test:setup",
"dev:destroy": "composer nuke && composer wp:destroy",
"nuke": "rm yarn.lock && rm composer.lock && rm -rf node_modules/ && rm -rf vendor",
"wp:install": "bash ./bin/install-docker.sh && composer wp:config",
Expand Down

0 comments on commit 28d4018

Please sign in to comment.