Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 14 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ jobs:
shell: bash
run: $BUILD_CMD test --target ${{ matrix.job.target }}

test_wasm_plugins:
name: Test WASM component plugins
runs-on: ubuntu-22.04
steps:
# v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@1.85.0
with:
# The tests build every bundled plugin as a component.
targets: wasm32-wasip2
# Component loading is host behaviour, so it is tested once, natively,
# rather than on every target the matrix above cross-compiles for.
- run: cargo test --features wasm-plugin-tests --test wasm

test_mime_db:
name: Test with MIME database
runs-on: ubuntu-22.04
Expand All @@ -69,27 +83,6 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- run: cargo +stable test

regression_test:
name: Output Regression Test
runs-on: ubuntu-22.04
steps:
# v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@1.85.0
- name: Generate output for all sample files
run: ./sample_files/compare_all.sh
- name: Verify output is unchanged
run: diff -C2 sample_files/compare.result sample_files/compare.expected

package:
name: Check Linux Packaging
runs-on: ubuntu-22.04
steps:
# v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@1.85.0
- run: cargo package --allow-dirty

fmt:
name: Rustfmt
runs-on: ubuntu-22.04
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ perf.data*
flamegraph.svg
.idea

sample_files/compare.result

notes.md
perf_baseline_*.txt
__pycache__/
.env

# WASM plugin builds: scripts/build-wasm-plugins.sh
plugin.wasm
/crates/*/target
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[files]
extend-exclude = [
"vendored_parsers/", "sample_files/",
"src/tags/linguist/",
"homepage/home_static/demo.cast", "homepage/home_static/*.min.js",
"homepage/home_img",
"demo_files/",
Expand All @@ -12,6 +13,8 @@ extend-exclude = [
[default.extend-words]
ba = "ba"
edn = "edn"
# esy is the OCaml/Reason package manager, whose lockfile Linguist lists.
esy = "esy"
mak = "mak"
ND = "ND"

Expand Down
Loading
Loading