diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8743db0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,15 @@ +name: Test +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/prepare + - run: npm test diff --git a/README.md b/README.md index b554107..457de77 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This template includes the following tools and configurations: - [Storybook](https://storybook.js.org/) for building and testing UI components in isolation. - [Prettier](https://prettier.io/) for consistent code formatting across the codebase. - [Husky](https://typicode.github.io/husky/#/) for Git hooks to automate tasks such formatting and testing before commits. -- CI (Continuous Integration) setup with [GitHub Actions](https://github.com/features/actions) for automated package publishing to npmjs. +- CI (Continuous Integration) setup with [GitHub Actions](https://github.com/features/actions) for automated testing and publishing the package to npmjs. ## 🚀 Getting Started