-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,39 +82,39 @@ jobs: | |
- name: "Clippy (wasm)" | ||
run: cargo clippy -p ruff_wasm --target wasm32-unknown-unknown --all-features -- -D warnings | ||
|
||
cargo-test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
name: "cargo test | ${{ matrix.os }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Install Rust toolchain" | ||
run: rustup show | ||
- name: "Install cargo insta" | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-insta | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: "Run tests (Ubuntu)" | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: cargo insta test --all --all-features --unreferenced reject | ||
- name: "Run tests (Windows)" | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
shell: bash | ||
# We can't reject unreferenced snapshots on windows because flake8_executable can't run on windows | ||
run: cargo insta test --all --all-features | ||
# Check for broken links in the documentation. | ||
- run: cargo doc --all --no-deps | ||
env: | ||
# Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025). | ||
RUSTDOCFLAGS: "-D warnings" | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
with: | ||
name: ruff | ||
path: target/debug/ruff | ||
# cargo-test: | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, windows-latest] | ||
# runs-on: ${{ matrix.os }} | ||
# name: "cargo test | ${{ matrix.os }}" | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: "Install Rust toolchain" | ||
# run: rustup show | ||
# - name: "Install cargo insta" | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: cargo-insta | ||
# - uses: Swatinem/rust-cache@v2 | ||
# - name: "Run tests (Ubuntu)" | ||
# if: ${{ matrix.os == 'ubuntu-latest' }} | ||
# run: cargo insta test --all --all-features --unreferenced reject | ||
# - name: "Run tests (Windows)" | ||
# if: ${{ matrix.os == 'windows-latest' }} | ||
# shell: bash | ||
# # We can't reject unreferenced snapshots on windows because flake8_executable can't run on windows | ||
# run: cargo insta test --all --all-features | ||
# # Check for broken links in the documentation. | ||
# - run: cargo doc --all --no-deps | ||
# env: | ||
# # Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025). | ||
# RUSTDOCFLAGS: "-D warnings" | ||
# - uses: actions/upload-artifact@v3 | ||
# if: ${{ matrix.os == 'ubuntu-latest' }} | ||
# with: | ||
# name: ruff | ||
# path: target/debug/ruff | ||
|
||
cargo-fuzz: | ||
runs-on: ubuntu-latest | ||
|
@@ -132,24 +132,24 @@ jobs: | |
tool: [email protected] | ||
- run: cargo fuzz build -s none | ||
|
||
cargo-test-wasm: | ||
runs-on: ubuntu-latest | ||
name: "cargo test (wasm)" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Install Rust toolchain" | ||
run: rustup target add wasm32-unknown-unknown | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "npm" | ||
cache-dependency-path: playground/package-lock.json | ||
- uses: jetli/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: "Run wasm-pack" | ||
run: | | ||
cd crates/ruff_wasm | ||
wasm-pack test --node | ||
# cargo-test-wasm: | ||
# runs-on: ubuntu-latest | ||
# name: "cargo test (wasm)" | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: "Install Rust toolchain" | ||
# run: rustup target add wasm32-unknown-unknown | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
# cache: "npm" | ||
# cache-dependency-path: playground/package-lock.json | ||
# - uses: jetli/[email protected] | ||
# - uses: Swatinem/rust-cache@v2 | ||
# - name: "Run wasm-pack" | ||
# run: | | ||
# cd crates/ruff_wasm | ||
# wasm-pack test --node | ||
|
||
scripts: | ||
name: "test scripts" | ||
|