Skip to content

Commit

Permalink
ci: replace snapshot image from the one in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed Jun 3, 2024
1 parent baa676c commit 9ca56b3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
- name: Build the packages
run: pnpm --filter !client --filter !api build

- name: Run tests
run: pnpm -r test

- name: Build the GitHub pages distribution
run: VITE_DEPLOY_TO_GH=true pnpm --filter client build

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ jobs:
- name: Setup pnpm
uses: ./.github/actions/pnpm

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Build packages
run: |
pnpm --filter types --filter utils build --filter db build && \
pnpm --filter client --filter api build
env:
VITE_API_URL: https://api.teemukoivisto.xyz/sveltekit-monorepo

- name: Build & test
uses: ./.github/actions/build-test
uses: ./.github/actions/e2e
4 changes: 2 additions & 2 deletions .github/workflows/version-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Setup pnpm
uses: ./.github/actions/pnpm

- name: Build & test
uses: ./.github/actions/build-test
- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Setup .npmrc
run: |
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/e2e/cypress/e2e/login.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ describe('# Login page', () => {
cy.visit('/users')

cy.get('tr').should('have.length.gte', 2)
// @TODO the font size seems too much off in the CI server for the locally
// created snapshots to match
cy.matchImage({
screenshotConfig: {
capture: 'viewport'
Expand Down

0 comments on commit 9ca56b3

Please sign in to comment.