Skip to content

Commit

Permalink
ci: switch Yarn to Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 8, 2024
1 parent 3504082 commit 9c9780c
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
id: yarn-cache
- uses: oven-sh/setup-bun@v1
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
bun-version: 1.1.3

- name: Install dependencies
run: yarn install
run: bun install

- name: Build the library
run: yarn build
run: bun run build

- name: Run unit tests
run: yarn test
run: bun test

# Only trigger deploy if previous steps pass and branch is main
- name: Deploy docs
Expand Down
132 changes: 132 additions & 0 deletions tests/__snapshots__/fixtures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1794,3 +1794,135 @@ export interface AnchorPropsProps extends RestProps {
export default class AnchorProps extends SvelteComponentTyped<AnchorPropsProps, Record<string, any>, { default: {} }> {}
"
`;
exports[`fixtures (TypeScript) "svg-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["svg"];
export interface SvgPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class SvgProps extends SvelteComponentTyped<SvgPropsProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "rest-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"];
export interface RestPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class RestProps extends SvelteComponentTyped<RestPropsProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "rest-props-multiple/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"] & SvelteHTMLElements["span"];
export interface RestPropsMultipleProps extends RestProps {
/**
* @default false
*/
edit?: boolean;
/**
* @default false
*/
heading?: boolean;
[key: \`data-${string}\`]: any;
}
export default class RestPropsMultiple extends SvelteComponentTyped<RestPropsMultipleProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "anchor-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
export interface AnchorPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class AnchorProps extends SvelteComponentTyped<AnchorPropsProps, Record<string, any>, { default: {} }> {}
"
`;
exports[`fixtures (TypeScript) "svg-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["svg"];
export interface SvgPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class SvgProps extends SvelteComponentTyped<SvgPropsProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "rest-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"];
export interface RestPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class RestProps extends SvelteComponentTyped<RestPropsProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "rest-props-multiple/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"] & SvelteHTMLElements["span"];
export interface RestPropsMultipleProps extends RestProps {
/**
* @default false
*/
edit?: boolean;
/**
* @default false
*/
heading?: boolean;
[key: \`data-${string}\`]: any;
}
export default class RestPropsMultiple extends SvelteComponentTyped<RestPropsMultipleProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "anchor-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["a"];
export interface AnchorPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class AnchorProps extends SvelteComponentTyped<AnchorPropsProps, Record<string, any>, { default: {} }> {}
"
`;

0 comments on commit 9c9780c

Please sign in to comment.