fork/nix-index

git clone https://git.julia.blue/fork/nix-index

figsodaMerge pull request #226 from figsoda/fmt73d96c8

v0.1.7
625 B33 linesraw
1name: Rust
2
3on:
4  push:
5    branches: [master]
6  pull_request:
7    branches: [master]
8
9env:
10  CARGO_TERM_COLOR: always
11
12jobs:
13  build:
14    runs-on: ${{ matrix.os }}
15    strategy:
16      matrix:
17        os: [macos-latest, ubuntu-latest]
18
19    steps:
20      - uses: actions/checkout@v3
21      - name: Build
22        run: cargo build --verbose
23      - name: Run tests
24        run: cargo test --verbose
25
26  format:
27    runs-on: ubuntu-latest
28    steps:
29      - uses: actions/checkout@v3
30      - name: Cargo fmt
31        run: |
32          rustup toolchain install nightly --profile minimal -c rustfmt
33          cargo +nightly fmt --check