Skip to content

fix syntax highlighting not working properly for tokens at line begin… #102

fix syntax highlighting not working properly for tokens at line begin…

fix syntax highlighting not working properly for tokens at line begin… #102

Workflow file for this run

name: cargo-checks
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./kls
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup - cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup - wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Setup - rust target for wasm
run: rustup target add wasm32-unknown-unknown
- name: Rust - test kls
run: cargo test
- name: Setup - install clippy
run: rustup component add clippy
- name: Rust - Lint
run: cargo clippy -- -D warnings
- name: Rust - Format
run: cargo fmt --check
- name: Setup - Node.js
uses: actions/setup-node@v3
with:
node-version: '21'
cache: 'yarn'
- name: Setup - yarn
run: yarn
working-directory: .
- name: Build extension
run: make package
working-directory: .