Skip to content

Commit

Permalink
ci: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Flix committed Dec 21, 2023
1 parent 11ba367 commit 4a3902e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 102 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Rust

on: [push, pull_request]
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]

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

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,22 +23,25 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust
shell: bash
run: |
rustup update
rustup component add clippy
rustup toolchain install nightly --component rustfmt
- name: Load cache
- name: Caching
uses: Swatinem/rust-cache@v2

- name: Style
- name: Formatting
shell: bash
run: cargo +nightly fmt -- --check

- name: Install cargo-lints
run: cargo install --git https://github.com/FlixCoder/cargo-lints

- name: Check and Clippy
run: cargo lints clippy --all-targets --workspace -- -D warnings
shell: bash
run: cargo clippy --all-targets --workspace -- -D warnings

- name: Run tests
run: cargo test --workspace --no-run && cargo test --workspace -- --nocapture
shell: bash
run: |
cargo test --workspace --no-run
cargo test --workspace -- --nocapture
94 changes: 0 additions & 94 deletions lints.toml

This file was deleted.

0 comments on commit 4a3902e

Please sign in to comment.