Skip to content

Commit

Permalink
Merge pull request #2 from lihqi/feat/addTest
Browse files Browse the repository at this point in the history
chore: Bump version to 1.0.6
  • Loading branch information
lihqi authored Feb 18, 2025
2 parents 9335d0f + 41fadb7 commit 71f8ae0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# GitHub Actions 示例 (.github/workflows/tests.yml)
name: Tests
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }

# 安装依赖、运行测试并生成覆盖率报告
- run: npm install pnpm -g
- run: pnpm install
- run: pnpm test

# 上传到 Codecov
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # 需在仓库 Settings >
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![NPM version](https://img.shields.io/npm/v/show-key-press.svg?style=flat)](https://npmjs.org/package/show-key-press)
[![NPM downloads](https://img.shields.io/npm/dm/show-key-press.svg?style=flat)](https://npmjs.org/package/show-key-press)
[![codecov](https://codecov.io/gh/lihqi/show-key-press/graph/badge.svg?token=0I2ZUXH2H3)](https://codecov.io/gh/lihqi/show-key-press)

A lightweight key press display tool that shows user keyboard inputs on screen in real-time. Perfect keyboard mapping support for both Mac and Windows systems.

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov'],
coverageReporters: ['text-summary', 'lcov'],
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: 'tsconfig.json'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "show-key-press",
"version": "1.0.5",
"version": "1.0.6",
"description": "A lightweight key press display tool that shows user keyboard inputs on screen in real-time. Perfect keyboard mapping support for both Mac and Windows systems.",
"main": "./es/index.js",
"files": [
Expand Down

0 comments on commit 71f8ae0

Please sign in to comment.