-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/3574-github-actions' of github.com:CalderaWP/Ca…
…ldera-Forms into 3578-phpunit-7
- Loading branch information
Showing
4 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters