Skip to content

Commit

Permalink
upload to codecov from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 7, 2024
1 parent dbf5e62 commit cb90e7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,13 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30


- uses: codecov/codecov-action@v4
with:
# fail_ci_if_error: true # optional (default = false)
files: ./coverage/clover.xml # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)

4 changes: 3 additions & 1 deletion src/pages/upload.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ test('upload button appears after signing in', async ({page, loginPage}) => {
await loginPage.signIn();
await loginPage.signInComplete();
await page.goto('/');
await expect(page.getByRole('button', {name: /upload/i})).toBeVisible();
await expect(page.getByRole('button', {name: /upload/i})).toBeVisible({
timeout: 10_000,
});
});

test('can upload and view presentation', async ({page, loginPage}) => {
Expand Down

0 comments on commit cb90e7d

Please sign in to comment.