diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d794fea..cb05e6bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,22 +29,22 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm turbo lint prettier - # dev-script: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # with: - # fetch-depth: 2 - # - uses: pnpm/action-setup@v2 - # with: - # version: 8 - # - uses: actions/setup-node@v3 - # with: - # node-version: 20 - # cache: 'pnpm' - # - run: pnpm install - # - run: pnpm start-server-and-test 'turbo dev --filter=registry' 3000 'exit 0;' - # working-directory: apps/registry + dev-script: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' + - run: pnpm install + - run: pnpm start-server-and-test 'turbo dev --filter=registry' 3000 'exit 0;' + working-directory: apps/registry build: runs-on: ubuntu-latest steps: @@ -60,29 +60,29 @@ jobs: cache: pnpm - run: pnpm install - run: pnpm turbo build - # test: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - uses: actions/setup-node@v3 - # with: - # node-version: 20 - # - uses: pnpm/action-setup@v2 - # with: - # version: 8 - # - uses: actions/setup-node@v3 - # with: - # node-version: 20 - # cache: pnpm - # - run: pnpm install - # - name: Install Playwright Browsers - # run: pnpm exec playwright install --with-deps - # working-directory: apps/registry - # - name: Run Playwright tests - # run: pnpm turbo test:e2e --concurrency 1000 # The high concurrency is due to a bug: https://github.com/vercel/turbo/issues/4291 - # - uses: actions/upload-artifact@v3 - # if: always() - # with: - # name: playwright-report - # path: playwright-report/ - # retention-days: 30 + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: pnpm + - run: pnpm install + - name: Install Playwright Browsers + run: pnpm exec playwright install --with-deps + working-directory: apps/registry + - name: Run Playwright tests + run: pnpm turbo test:e2e --concurrency 1000 # The high concurrency is due to a bug: https://github.com/vercel/turbo/issues/4291 + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/apps/registry/app/components/Button/Button.js b/apps/registry/app/components/Button/Button.js index fd064ae4..308946d0 100644 --- a/apps/registry/app/components/Button/Button.js +++ b/apps/registry/app/components/Button/Button.js @@ -80,14 +80,7 @@ const StyledLink = styled.a` ${buttonStyles} `; -const Button = ({ - size = 'medium', - color = 'default', - href = null, - children, - disabled, - ...props -}) => { +const Button = ({ size, color, href, children, disabled, ...props }) => { if (href) { return (