Skip to content

Commit

Permalink
Merge pull request #8 from design-sparx/ft/test-workflow
Browse files Browse the repository at this point in the history
feat:
  • Loading branch information
kelvink96 authored Sep 26, 2023
2 parents a3df654 + 8f9bd75 commit 9bdab72
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/mean-spies-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"antd-multi-dashboard": patch
---

## Added
- Implemented test GitHub Actions to automate testing workflows.
- Added CONTRIBUTING.md with helpful notes for contributors.
- Added a changeset script in package.json to streamline versioning and changelog management.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of dependencies, optionally build, and run tests
# across different versions of node.
name: Test
on:
push:
branches:
- '**' # make it run on any branch
- '!main' # but exclude the 'main' and 'master' branches
- '!master'
pull_request:
branches:
- '**'
- '!main'
- '!master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '16.x'
- '18.x' # whichever node versions you support
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This repo uses [changesets](https://github.com/changesets/changesets) to
make releasing updates easier. For you, the contributor, this means you
should run `npm run changeset` when you've got your changes ready. For
more details, see this short document on [adding a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#i-am-in-a-single-package-repository).
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"changeset": "changeset"
},
"dependencies": {
"@ant-design/charts": "^1.4.2",
Expand Down

0 comments on commit 9bdab72

Please sign in to comment.