Skip to content

build(deps-dev): bump storybook from 7.5.2 to 7.6.21 #446

build(deps-dev): bump storybook from 7.5.2 to 7.6.21

build(deps-dev): bump storybook from 7.5.2 to 7.6.21 #446

Workflow file for this run

name: CI:Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci-rust-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
NODE_OPTIONS: '--max_old_space_size=4096'
VITEST_SEGFAULT_RETRY: 3
jobs:
rust-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0
- name: Rust setup
uses: moonrepo/setup-rust@v1
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
cache-bin: false
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'yarn' # Set this to npm, yarn or pnpm.
- name: Install app dependencies and build web
run: yarn && yarn build
- name: Run rust test
working-directory: src-tauri
run: cargo test
rust-fmt:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0
- name: Rust setup
uses: moonrepo/setup-rust@v1
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
cache-bin: false
- run: rustup component add rustfmt
- name: Run rust fmt
working-directory: src-tauri
run: cargo fmt --all --check
rust-clippy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
version: 1.0
- name: Rust setup
uses: moonrepo/setup-rust@v1
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
cache-bin: false
- run: rustup component add clippy
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'yarn' # Set this to npm, yarn or pnpm.
- name: Install app dependencies and build web
run: yarn && yarn build
- name: Run clippy
working-directory: src-tauri
run: cargo clippy