Skip to content

Add .github folder

Add .github folder #1

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Justfile
run: cargo install just
- name: Check
run: just check-fmt
check-crates:
name: Check crates
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-default-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Justfile
run: cargo install just
- name: Check
run: just check-crates
check-crates-msrv:
name: Check crates (MSRV)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Justfile
run: cargo install just
- name: Check
run: just check-crates-msrv
check-docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-doc-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Justfile
run: cargo install just
- name: Check
run: just check-docs