File: rust.yml

package info (click to toggle)
rust-json-pretty-compact 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 196 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Rust

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - run: rustup update --no-self-update 1.75
    - run: rustup component add rustfmt clippy --toolchain 1.75
    - run: rustup default 1.75
    - run: rustc --version
    - uses: actions/checkout@v4
    - run: cargo fmt -- --check
    - run: cargo build
    - run: cargo clippy -- -Dwarnings
    - run: cargo test