Skip to content

feat(neon): JsFunction::bind() and Object::prop() #997

feat(neon): JsFunction::bind() and Object::prop()

feat(neon): JsFunction::bind() and Object::prop() #997

Workflow file for this run

name: Lints
on:
push:
# Prevent duplicate runs of this workflow on our own internal PRs.
branches:
- main
- next/*
pull_request:
branches:
- main
- next/*
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
rust-toolchain: [nightly]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Rust ${{ matrix.rust-toolchain }}
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
components: clippy,rustfmt
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Cache Electron
uses: actions/cache@v4
with:
path: ~/.cache/electron
key: ${{ runner.os }}-electron-${{ hashFiles('./package-lock.json') }}
- name: npm install
run: npm ci --prefer-offline --no-audit --no-fund
- name: Prettier Formatting
run: npm run prettier:check
- name: Rust Formatting
run: cargo fmt --all -- --check
- name: Rust Clippy
run: cargo neon-clippy