Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
- added test github actions
- added CONTRIBUTING.md help note
- added changeset script in package.json
  • Loading branch information
kelvink96 committed Sep 26, 2023
1 parent a3df654 commit 96c02f7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
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 96c02f7

Please sign in to comment.