Skip to content

Nutritional table behind details #21

Nutritional table behind details

Nutritional table behind details #21

Workflow file for this run

name: CI
on:
push:
jobs:
check:
name: Checks and lints
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Check Rust formatting
run: |
nix develop --command \
cargo fmt --check
- name: Clippy
run: |
nix develop --command \
cargo clippy --workspace --no-deps
build_and_test:
name: Build and test
needs: check
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Set up Rust cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: |
nix develop --command \
cargo build --workspace
- name: Test
run: |
nix develop --command \
cargo test --workspace