Skip to content

Commit

Permalink
Add CI and update yew->leptos
Browse files Browse the repository at this point in the history
  • Loading branch information
LJ authored and LJ committed Apr 6, 2024
1 parent 1b523b8 commit bb83b05
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 3 deletions.
110 changes: 110 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
on:
pull_request:
push:
branches:
- main

name: CI
jobs:
deny:
name: Deny
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: FMT
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-features -Z unstable-options --future-incompat-report -- -D warnings

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all-features

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --all-features

bloat:
name: Bloat
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Run cargo bloat
uses: orf/cargo-bloat-action@v1
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}

spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install cargo-spellcheck
uses: taiki-e/install-action@v2
with:
tool: cargo-spellcheck
- name: Run spellcheck
run: cargo spellcheck --code 99

semver:
name: Semver check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"techtheawesome.rust-yew"
"rust-lang.rust-analyzer"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Onlivfe app_rs

A rust-native [onlivfe app](https://onlivfe.com) built using [tauri](https://tauri.app/) and [yew](https://yew.rs/), working as a more ugly alternative to the [VRPeeps app](https://github.com/onlivfe/desktop) that's built with [Angular](https://angular.io/) & [tauri](https://tauri.app).
A rust-native [onlivfe app](https://onlivfe.com) built using [tauri](https://tauri.app/) and [leptos](https://leptos.dev/), working as a more ugly alternative to the [VRPeeps app](https://github.com/onlivfe/desktop) that's built with [Angular](https://angular.io/) & [tauri](https://tauri.app).

Also note that the license is [AGPL](https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)).

Expand Down

0 comments on commit bb83b05

Please sign in to comment.