Skip to content

Commit

Permalink
use base 64 keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Oct 27, 2023
1 parent cfd3bca commit 6b0f95a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/component-tests_kitbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pnpm install

- name: Run Playwright Component tests
run: pnpm build && pnpm -F kitbook test:components
run: pnpm build && pnpm -F kitbook test:components:update
env:
CI: true
PLAYWRIGHT_BASE_URL: ${{ github.event.deployment_status.target_url }}
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions-hub/gcloud@master
env:
PROJECT_ID: components-check
APPLICATION_CREDENTIALS: ${{ secrets.GCS_COMPONENT_CHECK_BUCKETS_CREDENTIALS }}
APPLICATION_CREDENTIALS: ${{ secrets.GCS_COMPONENT_CHECK_BUCKETS_CREDENTIALS_BASE64 }}
with:
args: storage rm gs://component-snapshots/kitbook/main/** --verbosity=critical # set verbosity to ignore errors emitted when nothing is found to delete

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/component-tests_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions-hub/gcloud@master
env:
PROJECT_ID: components-check
APPLICATION_CREDENTIALS: ${{ secrets.GCS_COMPONENT_CHECK_BUCKETS_CREDENTIALS }}
APPLICATION_CREDENTIALS: ${{ secrets.GCS_COMPONENT_CHECK_BUCKETS_CREDENTIALS_BASE64 }}
with:
args: storage rm gs://component-snapshots/kitbook-template/main/** --verbosity=critical # set verbosity to ignore errors emitted when nothing is found to delete

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.DS_Store
node_modules
ins.md
key.json

playwright-report
test-results

# ensure locally create snapshots are not committed
*win32.png
**/e2e/snapshots/*
1 change: 1 addition & 0 deletions packages/kitbook/e2e/kitbook.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import kitbookConfig from '../kitbook.config'
const skipFiles = [
'/docs/1-variants/DefaultSlot',
'/lib/routes/sandbox/[...file]/+page',
'/lib/routes/sandbox/[...file]/mockComponents/NeedsPropsToNotError', // this page intentionally errors
]

const variantModules = await getVariants({ skipFiles })
Expand Down
3 changes: 2 additions & 1 deletion packages/kitbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json --threshold warning --diagnostic-sources js,svelte",
"check:watch": "svelte-check --tsconfig ./jsconfig.json --threshold warning --diagnostic-sources js,svelte --watch",
"test": "vitest",
"test:components": "playwright test kitbook --update-snapshots"
"test:components": "playwright test kitbook",
"test:components:update": "playwright test kitbook --update-snapshots"
},
"svelte": "./dist/index.js",
"peerDependencies": {
Expand Down

2 comments on commit 6b0f95a

@vercel
Copy link

@vercel vercel bot commented on 6b0f95a Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kitbook-template – ./packages/template

kitbook-template-polylingual.vercel.app
kitbook-template.vercel.app
kitbook-template-git-main-polylingual.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 6b0f95a Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kitbook – ./packages/kitbook

kitbook.vercel.app
kitbook-polylingual.vercel.app
kitbook-git-main-polylingual.vercel.app

Please sign in to comment.