diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 69ffb28..9e7fde9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,6 +4,7 @@ "workspaceFolder": "/workspaces/react-vtree", "runArgs": ["--name=reactvtree_dev"], "containerEnv": { + "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD": "1", "CODEX_HOME": "/workspaces/react-vtree/.agents/codex" }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d502e39..af10423 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: workflow_dispatch: push: - branches: [master] + branches: [main] paths: - '.github/workflows/ci.yml' - '__stories__/**' @@ -21,7 +21,7 @@ on: - 'tsconfig.json' - 'vitest.config.ts' pull_request: - branches: [master] + branches: [main] types: [opened, synchronize, reopened] paths: - '.github/workflows/ci.yml' @@ -59,3 +59,10 @@ jobs: run: npm ci - name: Check run: npm run check + - name: Coverage + run: npm run test:coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + files: .coverage/lcov.info + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..aedf881 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,40 @@ +name: GitHub Pages + +on: + workflow_run: + workflows: [CI] + branches: [main] + types: [completed] + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + deploy: + name: Build & Deploy Storybook + if: github.event.workflow_run.conclusion == 'success' + runs-on: ubuntu-latest + timeout-minutes: 10 + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + cache: npm + node-version: lts/* + - run: npm ci + - run: npm run storybook:build + - uses: actions/configure-pages@v6 + - uses: actions/upload-pages-artifact@v4 + with: + path: storybook-static + - id: deployment + uses: actions/deploy-pages@v5 diff --git a/.gitignore b/.gitignore index 802265a..14f4d5b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ # testing /.nyc_output -/coverage +/.coverage /storybook-static # production diff --git a/README.md b/README.md index b1a0a81..af976af 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,7 @@ [](https://www.npmjs.com/package/react-vtree) [](./LICENSE) [](https://github.com/Lodin/react-vtree/actions) -[](https://sonarcloud.io/dashboard?id=Lodin_react-vtree) -[](https://sonarcloud.io/dashboard?id=Lodin_react-vtree) -[](https://sonarcloud.io/dashboard?id=Lodin_react-vtree) +[](https://codecov.io/gh/Lodin/react-vtree) This package provides a lightweight and flexible solution for rendering large tree structures. It is built on top of the [react-window](https://github.com/bvaughn/react-window) library. diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index 428500f..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/iframe.html b/docs/iframe.html deleted file mode 100644 index 9a1f872..0000000 --- a/docs/iframe.html +++ /dev/null @@ -1,74 +0,0 @@ -
Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.