diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 330168c..ea13d80 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,7 @@ updates: labels: - dependencies - rust - target-branch: 'v3' # TODO: change me after merging v3 + target-branch: v3 # TODO: change me after merging v3 - package-ecosystem: github-actions directory: / schedule: @@ -19,4 +19,4 @@ updates: labels: - ci - dependencies - target-branch: 'v3' # TODO: change me after merging v3 + target-branch: v3 # TODO: change me after merging v3 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4ae5777..4dd18fe 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,6 @@ name: Code Coverage -on: [push] +on: [push, pull_request] jobs: test: name: Coverage @@ -12,13 +12,23 @@ jobs: - 8010:8010 env: langtool_maxTextLength: 1500 - container: - image: xd009642/tarpaulin:develop-nightly - options: --security-opt seccomp=unconfined + Java_Xmx: 2g + env: + LANGUAGETOOL_HOSTNAME: http://localhost + LANGUAGETOOL_PORT: 8010 steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Install nightly toolchain + uses: dtolnay/rust-toolchain@nightly + + - name: Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Install cargo-tarpaulin + uses: taiki-e/install-action@cargo-tarpaulin + - name: Generate code coverage run: | cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml diff --git a/tests/snapshots/cli__autodetect_html_file.snap b/tests/snapshots/cli__autodetect_html_file.snap index 43fb0bb..33fc1bd 100644 --- a/tests/snapshots/cli__autodetect_html_file.snap +++ b/tests/snapshots/cli__autodetect_html_file.snap @@ -7,7 +7,7 @@ error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. | 4 | [path] diff --git a/tests/snapshots/cli__autodetect_markdown_file.snap b/tests/snapshots/cli__autodetect_markdown_file.snap index 56f083c..8420107 100644 --- a/tests/snapshots/cli__autodetect_markdown_file.snap +++ b/tests/snapshots/cli__autodetect_markdown_file.snap @@ -42,14 +42,14 @@ error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. | 5 | ...piling LTRS. #### Default Features - - **cli**: Adds command-line related methods for ... | ^^^^^^^ Possible spelling mistake - | ------- help: CLI, Clip, CGI, CPI, CSI, ... (1428 not shown) + | ------- help: CLI, Clip, CGI, CPI, CSI, ... (1506 not shown) | error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. --> [path] | 9 | ...ate**, **color**, **multithreaded**. - **native-tls**: Enables TLS functionality provided by ... | ^^^^^^^^^^^^^^ Possible spelling mistake - | -------------- help: natives, natively, nativists + | -------------- help: natives, natively, nativists, nativeness, naivetes | error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. --> [path] @@ -63,14 +63,14 @@ error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. | 6 | ...shells. This feature also activates the **cli** feature. Enter ltrs completions --help ... | ^^^^^^^ Possible spelling mistake - | ------- help: CLI, clip, CGI, CPI, CSI, ... (1461 not shown) + | ------- help: CLI, clip, CGI, CPI, CSI, ... (1543 not shown) | error[MORFOLOGIK_RULE_EN_US]: Possible spelling mistake found. --> [path] | 10 | ...es color outputting in the terminal. If **cli** feature is also enabled, the --color= [path]