Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Aug 12, 2024
1 parent 9a36660 commit ab2b6db
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 271 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: yarn test:coverage

- name: generate badges
run: yarn generate-badges
run: yarn generate-coverage-report:badges

- name: push coverage artifacts to another branch
uses: peaceiris/actions-gh-pages@v4
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/coverage-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "PR Build and Test"
on:
pull_request:

jobs:
build-and-test:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: 📥 Install Dependencies
run: yarn --frozen-lockfile

- name: "Build"
run: yarn build

- name: run coverage
run: yarn test:coverage

# Remove node_modules to see if this action runs entirely compiled
- name: "Remove Node Modules"
run: rm -rf node_modules

- name: "PR Test Reports"
uses: hyperse-io/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
include-all-projects: "false"
name: "PR Test Reports"
3 changes: 0 additions & 3 deletions .github/workflows/release-or-version-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
- name: 'Run test coverage'
run: yarn test:coverage

- name: Hyperse Vitest Coverage Reporter
uses: hyperse-io/[email protected]

# @link https://github.com/changesets/action
- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"build": "rimraf dist && tsc -p ./tsconfig.build.json",
"changeset": "changeset",
"cz": "cz",
"generate-badges": "generate-badges",
"generate-coverage-report:badges": "generate-coverage-report --type badges",
"generate-coverage-report:readme": "generate-coverage-report --type readme",
"lint": "eslint .",
"lint-fix": "yarn lint --fix",
"lint-staged-files": "lint-staged --allow-empty",
Expand All @@ -61,14 +62,14 @@
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.4.0",
"@commitlint/config-conventional": "19.2.2",
"@hyperse/eslint-config-hyperse": "^1.1.1",
"@hyperse/vitest-coverage-reporter": "^1.0.9",
"@types/node": "^22.1.0",
"@hyperse/eslint-config-hyperse": "^1.1.3",
"@hyperse/vitest-coverage-reporter": "^1.0.10",
"@types/node": "^22.2.0",
"@vitest/coverage-istanbul": "^2.0.5",
"cheerio": "^1.0.0-rc.12",
"cheerio": "^1.0.0",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.8.0",
"eslint": "^9.9.0",
"husky": "9.1.4",
"lint-staged": "15.2.8",
"rimraf": "6.0.1",
Expand Down
16 changes: 8 additions & 8 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
]
},
"dependencies": {
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-content-docs": "^3.4.0",
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/core": "^3.5.1",
"@docusaurus/plugin-content-docs": "^3.5.1",
"@docusaurus/plugin-google-gtag": "^3.5.1",
"@docusaurus/preset-classic": "^3.5.1",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.1",
"postcss": "^8.4.41",
Expand All @@ -63,15 +63,15 @@
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.4.0",
"@commitlint/config-conventional": "19.2.2",
"@docusaurus/module-type-aliases": "3.4.0",
"@hyperse/eslint-config-hyperse": "^1.1.1",
"@docusaurus/module-type-aliases": "3.5.1",
"@hyperse/eslint-config-hyperse": "^1.1.3",
"@tsconfig/docusaurus": "^2.0.3",
"@types/node": "^22.1.0",
"@types/node": "^22.2.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.8.0",
"eslint": "^9.9.0",
"husky": "9.1.4",
"lint-staged": "15.2.8",
"typescript": "5.5.4",
Expand Down
Loading

0 comments on commit ab2b6db

Please sign in to comment.