diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a216ff..31706f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,26 +2,33 @@ # REF: # - https://github.com/vyadh/nutest/blob/main/.github/workflows/tests.yaml -name: Tests +name: Run Tests on: pull_request: + paths-ignore: + - '**.md' + - 'docs/**' workflow_dispatch: push: branches: - main + paths-ignore: + - '**.md' + - 'docs/**' schedule: - - cron: '0 7 * * *' # Run every morning at 7am UTC + - cron: '0 0 * * *' # Run every morning at 0am UTC permissions: contents: read jobs: - nutest-tests: + run-tests: name: Run Tests permissions: checks: write + pull-requests: write strategy: fail-fast: true @@ -58,3 +65,24 @@ jobs: --report { type: junit, path: test-report.xml } --returns summary | to json | save --force test-summary.json ) + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: runner.os == 'Linux' && always() + with: + comment_mode: off + files: test-report.xml + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action/macos@v2 + if: runner.os == 'macOS' && always() + with: + comment_mode: off + files: test-report.xml + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action/windows@v2 + if: runner.os == 'Windows' && always() + with: + comment_mode: off + files: test-report.xml diff --git a/README.md b/README.md index 62e9566..adfa9de 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ Parameters: ### Environment Configuration -To perform code reviews locally, you need to modify the configuration file. A sample configuration file `config.example.yml` is already provided in the repository. Copy it to `config.yml` and adjust it according to your actual setup. +To perform code reviews locally, you need to modify the configuration file. A sample configuration file [`config.example.yml`](https://github.com/hustcer/deepseek-review/blob/main/config.example.yml) is already provided in the repository. Copy it to `config.yml` and adjust it according to your actual setup. > [!WARNING] > diff --git a/README.zh-CN.md b/README.zh-CN.md index 5a74176..2562b66 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -189,7 +189,7 @@ Parameters: ### 环境配置 -在本地进行代码审查需要先修改配置文件,仓库里已经有了 `config.example.yml` 配置文件示例,将其拷贝到 `config.yml` 然后根据自己的实际情况进行修改即可。 +在本地进行代码审查需要先修改配置文件,仓库里已经有了 [`config.example.yml`](https://github.com/hustcer/deepseek-review/blob/main/config.example.yml) 配置文件示例,将其拷贝到 `config.yml` 然后根据自己的实际情况进行修改即可。 > [!WARNING] > diff --git a/cspell.yml b/cspell.yml index 02fbbc4..be85932 100644 --- a/cspell.yml +++ b/cspell.yml @@ -9,6 +9,8 @@ words: - nuon - nuons - ECODE +- vyadh +- nutest - endfor - dotenv - hustcer