From 486c670b52c2336fd48b66aad23a0cb30310099f Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 28 Jan 2021 16:05:53 +0100 Subject: [PATCH] Upload artifacts --- .github/workflows/build.yml | 5 +++++ .github/workflows/release.yml | 5 +++++ app/test/smoke.spec.ts | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83979fdb5..fcf272f63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,6 +60,11 @@ jobs: run: | jlpm run build:test jlpm run test:ci + - uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: test-artifacts + path: app/artifacts build: needs: [integrity] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a5d80aa3..7a292bcb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,11 @@ jobs: run: | jlpm run build:test jlpm run test:ci + - uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: test-artifacts + path: app/artifacts build: needs: [integrity] diff --git a/app/test/smoke.spec.ts b/app/test/smoke.spec.ts index 1749447d3..8351b6c1e 100644 --- a/app/test/smoke.spec.ts +++ b/app/test/smoke.spec.ts @@ -7,7 +7,9 @@ describe('Smoke', () => { beforeAll(async () => { jest.setTimeout(200000); browser = await chromium.launch({ slowMo: 1000 }); - context = await browser.newContext({ recordVideo: { dir: 'videos/' } }); + context = await browser.newContext({ + recordVideo: { dir: 'artifacts/videos/' } + }); }); afterAll(async () => {