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 |