Skip to content

Merge pull request #1011 from neon-bindings/kv/1.0 #813

Merge pull request #1011 from neon-bindings/kv/1.0

Merge pull request #1011 from neon-bindings/kv/1.0 #813

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:
- uses: actions/checkout@v3
- name: Use Rust ${{ matrix.rust-toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Cache Electron
uses: actions/cache@v3
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