Skip to content

Commit

Permalink
Merge pull request #4564 from nanasess/upload-evidence
Browse files Browse the repository at this point in the history
E2Eテスト失敗時にエビデンスを保存する
  • Loading branch information
okazy authored Jun 22, 2020
2 parents 922ee27 + 4a97293 commit 6ad7b9f
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 6ad7b9f

Please sign in to comment.