Skip to content

Commit

Permalink
feat: plugin setup (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
LIMPIX31 authored May 3, 2024
1 parent bbb0ebc commit 9ecb0a6
Show file tree
Hide file tree
Showing 25 changed files with 386 additions and 201 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/frontend.yml → .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ on:
pull_request:
branches: [ dev ]
paths:
- 'app/**'
- 'package.json'
- 'tsconfig.json'
- ".github/workflows/app.yml"
- "**/*.ts"
- "**/*.tsx"
- "**/*.js"
- "**/*.mjs"
- "**/package.json"
- '**/tsconfig.json'
- 'bun.lockb'

jobs:
lint:
name: "️ Lint"
name: "️ Lint"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -19,7 +23,7 @@ jobs:
- run: bun install
- run: bun run lint
typecheck:
name: "💯 Typecheck"
name: " Typecheck"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "🛡 Audit"

on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- dev
paths:
- ".github/workflows/audit.yml"
- "**/Cargo.lock"
- "**/Cargo.toml"
pull_request:
branches:
- dev
paths:
- ".github/workflows/audit.yml"
- "**/Cargo.lock"
- "**/Cargo.toml"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 12 additions & 5 deletions .github/workflows/backend.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: "🟧 Backend"
name: "🟧 Build"
on:
pull_request:
branches: [ dev ]
paths:
- 'src-tauri/**'
- 'crates/**'
- 'Cargo.*'
- ".github/workflows/build.yml"
- "**/*.rs"
- "**/Cargo.toml"
push:
branches:
- dev
paths:
- ".github/workflows/build.yml"
- "**/*.rs"
- "**/Cargo.toml"

jobs:
check:
name: "⚙️ Check"
name: "⚙️ Build"
strategy:
fail-fast: false
matrix:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "💯 Clippy"

on:
push:
branches:
- dev
paths:
- ".github/workflows/check.yml"
- "**/*.rs"
- "**/Cargo.toml"
pull_request:
branches:
- dev
paths:
- ".github/workflows/check.yml"
- "**/*.rs"
- "**/Cargo.toml"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: install webkit2gtk
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1
- uses: Swatinem/rust-cache@v2
- run: mkdir app/dist
- run: cargo clippy --all-targets --all-features -- -D warnings
Loading

0 comments on commit 9ecb0a6

Please sign in to comment.