mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 08:15:49 +00:00
Rvert main hiccup.
This commit is contained in:
47
.github/workflows/node-lint.yml
vendored
47
.github/workflows/node-lint.yml
vendored
@ -1,47 +0,0 @@
|
|||||||
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
|
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
cache-dependency-path: ./bindings/node/
|
|
||||||
cache: 'yarn'
|
|
||||||
|
|
||||||
- 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
|
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -23,5 +23,3 @@ pip-wheel-metadata
|
|||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
.yarn/
|
|
||||||
*.node
|
|
||||||
|
Reference in New Issue
Block a user