Skip to content

build(deps-dev): bump @types/node from 22.8.7 to 22.9.0 in /flipt-client-node #883

build(deps-dev): bump @types/node from 22.8.7 to 22.9.0 in /flipt-client-node

build(deps-dev): bump @types/node from 22.8.7 to 22.9.0 in /flipt-client-node #883

Workflow file for this run

name: Lint/Test Rust Engines
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Stable Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.75.0
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
- name: Test wasm
run: wasm-pack test --node
working-directory: flipt-engine-wasm
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Stable Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
coverage:
name: Coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true