forked from deployphp/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[deployphp#2197] Moved E2E tests to separate job
Moved E2E tests to separate job and added docker-compose cache to slightly improve stack build times.
- Loading branch information
Bartlomiej Sacharski
committed
Oct 19, 2020
1 parent
c99ee8d
commit c7eb7ed
Showing
1 changed file
with
22 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -33,8 +33,30 @@ jobs: | |
- name: Run test suite | ||
run: composer test | ||
|
||
e2e: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
|
||
- name: Build the docker-compose stack | ||
run: cd test/docker && docker-compose build | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
if: steps.composer-cache.outputs.cache-hit != 'true' | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Run E2E test suite | ||
run: cd test/docker && docker-compose up --abort-on-container-exit |