Skip to content

refactor: move to Biome #27

refactor: move to Biome

refactor: move to Biome #27

Workflow file for this run

name: Test
on: [push, pull_request]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: "always"
DIFF: 0
RUST_LOG: "off"
jobs:
cargo-fmt:
name: Cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo fmt -- --check
cargo-clippy:
name: Cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo clippy
cargo-test:
name: Cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo check
- run: cargo test
wasm-test:
name: Wasm test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build wasm
run: ./crates/biome_fmt/scripts/build.sh
- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
- name: Node Test
run: node --test
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Deno Test
run: deno test --allow-read
- uses: oven-sh/setup-bun@v1
- name: Bun Test
run: bun test test_bun
- name: Package
run: cd crates/biome_fmt/pkg && npm pack
- name: Upload
uses: actions/upload-artifact@v3
with:
name: npm
path: crates/biome_fmt/pkg/wasm-fmt-biome_fmt-*.tgz