Never gonna let you down

This commit is contained in:
Nicolas Patry
2023-05-12 16:24:26 +02:00
parent 4518b0f7f2
commit 8d07696c38

43
.github/workflows/node-lint.yml vendored Normal file
View File

@ -0,0 +1,43 @@
name: Lint
defaults:
run:
working-directory: ./bindings/node/
on:
push:
branches:
- main
paths-ignore:
- bindings/python/**
pull_request:
paths-ignore:
- bindings/python/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install dependencies
run: yarn install
- name: ESLint
run: yarn lint
- name: Cargo fmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy