Skip to content

Update release.yml

Update release.yml #21

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
tags:
- 'v*'
pull_request:
branches: [ main, master ]
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
runs-on: windows-latest
if: >
contains(github.event.head_commit.message, 'build:') ||
contains(github.event.head_commit.message, 'tag') ||
startsWith(github.ref, 'refs/tags/') ||
github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Check formatting
working-directory: ./src-tauri
run: cargo fmt --all -- --check
- name: Run clippy
working-directory: ./src-tauri
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
working-directory: ./src-tauri
run: cargo test