From 8d07696c386e84b16fd36d0cf290c4b73e033255 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 12 May 2023 16:24:26 +0200 Subject: [PATCH] Never gonna let you down --- .github/workflows/node-lint.yml | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/node-lint.yml diff --git a/.github/workflows/node-lint.yml b/.github/workflows/node-lint.yml new file mode 100644 index 00000000..b948e427 --- /dev/null +++ b/.github/workflows/node-lint.yml @@ -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