Deno plugins (#42)

Switch from BoaJS to Deno core
This commit is contained in:
Gregory Schier
2024-06-07 10:47:41 -07:00
committed by GitHub
parent f43b38c893
commit acfc254a58
32 changed files with 1378 additions and 5663 deletions

View File

@@ -1,10 +1,10 @@
on: [push, pull_request]
on: [push]
name: CI (JS)
jobs:
test:
name: Check
name: Lint/Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

View File

@@ -2,6 +2,7 @@ on:
push:
paths:
- src-tauri/**
- .github/workflows/**
name: CI (Rust)
@@ -11,7 +12,7 @@ defaults:
jobs:
test:
name: Test
name: Check/Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -21,10 +22,42 @@ jobs:
- run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev
- uses: actions-rs/toolchain@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ inputs.rust-version }}
override: true
- run: cargo check
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Lint
run: |
cargo fmt --all -- --check
cargo clippy -- -D warnings
- name: Install cargo check tools
run: |
cargo install --locked cargo-deny || true
cargo install --locked cargo-outdated || true
cargo install --locked cargo-udeps || true
cargo install --locked cargo-audit || true
cargo install --locked cargo-pants || true
- name: Check
run: |
cargo deny check
cargo outdated --exit-code 1
cargo udeps
rm -rf ~/.cargo/advisory-db
cargo audit
cargo pants
- run: cargo test --all