Skip to content

Commit

Permalink
Merge pull request EC-CUBE#4564 from nanasess/upload-evidence
Browse files Browse the repository at this point in the history
E2Eテスト失敗時にエビデンスを保存する
  • Loading branch information
nanasess committed Jun 12, 2020
2 parents 3ed0c8b + a5a3617 commit 663e290
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -dsession.gc_probability=0 -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

- name: Codeception
env:
Expand All @@ -208,6 +208,18 @@ jobs:
GROUP: ${{ matrix.group }}
SYMFONY_DEPRECATIONS_HELPER: weak
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action -g ${GROUP}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
with:
name: codeception-${{ matrix.group }}-evidence
path: codeception/_output/
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: codeception-${{ matrix.group }}-logs
path: var/log/

plugin-install:
name: Plugin install
Expand Down Expand Up @@ -320,7 +332,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -dsession.gc_probability=0 -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand All @@ -338,6 +350,18 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-install-${{ matrix.method }}-evidence
path: codeception/_output/
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-install-${{ matrix.method }}-logs
path: var/log/

plugin-update:
name: Plugin Update
Expand Down Expand Up @@ -449,7 +473,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -dsession.gc_probability=0 -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand All @@ -467,6 +491,18 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-update-${{ matrix.method }}-evidence
path: codeception/_output/
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-update-${{ matrix.method }}-logs
path: var/log/

plugin-extend:
name: Plugin extend
Expand Down Expand Up @@ -578,7 +614,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -dsession.gc_probability=0 -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand All @@ -596,6 +632,18 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-extend-${{ matrix.method }}-evidence
path: codeception/_output/
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-extend-${{ matrix.method }}-logs
path: var/log/

plugin-depend:
name: Plugin depend
Expand Down Expand Up @@ -709,7 +757,7 @@ jobs:
DATABASE_SERVER_VERSION: ${{ matrix.database_server_version }}
MAILER_URL: 'smtp://localhost:1025'
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
run: php -dsession.gc_probability=0 -S localhost:8000 &
run: php -dsession.save_path=${GITHUB_WORKSPACE}/var/sessions/${APP_ENV} -S localhost:8000 &

## ${PWD}/repos does not exist so service cannot be started
- name: Run package-api
Expand All @@ -727,6 +775,18 @@ jobs:
ECCUBE_PACKAGE_API_URL: 'http://localhost:8080'
NO_FIXTURES: 1
run: vendor/bin/codecept -vvv run acceptance --env chrome,github_action EA10PluginCest:${METHOD}
- name: Upload evidence
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-depend-${{ matrix.method }}-evidence
path: codeception/_output/
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: plugin-depend-${{ matrix.method }}-logs
path: var/log/

deploy:
name: Deploy
Expand Down

0 comments on commit 663e290

Please sign in to comment.