Skip to content

chore(ci): fix required Rust components list #491

chore(ci): fix required Rust components list

chore(ci): fix required Rust components list #491

Workflow file for this run

name: Premerge
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
schedule:
- cron: 0 0 1 * *
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v5
- name: install Rust
uses: actions-rust-lang/[email protected]
- name: check
run: cargo check
- name: test
run: cargo test
linting:
if: ${{ github.ref != 'main' }}
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v5
- name: install Rust
uses: actions-rust-lang/[email protected]
with:
components: rustfmt,clippy
- name: format
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy -- -D warnings