npm init neon --lib
#873
Workflow file for this run
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
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 |