Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/sweep-template.yml

This file was deleted.

53 changes: 28 additions & 25 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,35 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run lint
- run: npm run build
# unit_test:
# runs-on: ubuntu-latest
# needs: [lint]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18.x
# - run: npm install
# - name: unit test
# run: npm run test:unit
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm install
- name: oxlint
run: npm run lint
- name: format check
run: npm run format:check
- run: npm run build
component_test:
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm install
- name: component tests
run: npm run test:unit
e2e_test:
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- name: e2e testing
run: npm run test:e2e
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm install
- name: e2e testing
run: npm run test:e2e
65 changes: 34 additions & 31 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,54 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run lint
- run: npm run build
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm install
- name: oxlint
run: npm run lint
- name: format check
run: npm run format:check
- run: npm run build
# unit_test:
# runs-on: ubuntu-latest
# needs: [lint]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18.x
# node-version: 22.x
# - run: npm install
# - name: unit test
# run: npm run test:unit
e2e_test:
runs-on: ubuntu-latest
needs: [ lint ]
needs: [lint]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- name: unit test
run: npm run test:e2e
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- run: npm install
- name: unit test
run: npm run test:e2e
release:
runs-on: ubuntu-latest
needs: [ lint, e2e_test ]
needs: [lint, e2e_test]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install plugins
run: |
npm install @semantic-release/commit-analyzer -D
npm install @semantic-release/release-notes-generator -D
npm install @semantic-release/changelog -D
npm install @semantic-release/git -D
npm install @semantic-release/github -D
- uses: codfish/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install plugins
run: |
npm install @semantic-release/commit-analyzer -D
npm install @semantic-release/release-notes-generator -D
npm install @semantic-release/changelog -D
npm install @semantic-release/git -D
npm install @semantic-release/github -D
- uses: codfish/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm run lint
npm run format:check
npm run build
8 changes: 8 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"ignorePatterns": []
}
17 changes: 17 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "react", "nextjs", "jsx-a11y"],
"categories": {
"correctness": "error"
},
"rules": {
"react/rules-of-hooks": "error",
"react/react-compiler": "error",
// Suggests <output>/<fieldset> for role="status"/"group" live regions and
// toolbars where a div with an explicit role is the better fit.
"jsx-a11y/prefer-tag-over-role": "off"
},
"env": {
"builtin": true
}
}
11 changes: 7 additions & 4 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/git", {
"assets": ["CHANGELOG.md"],
"message": "docs(changelog): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md"],
"message": "docs(changelog): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
Loading
Loading