Add Dependabot config #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
formatting-and-quality: | |
name: Formatting and Quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v7 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
# Evaluate the devshell here so that the time reported for subsequent | |
# steps that use it reflect what is actually done there. | |
- name: Evaluate devshell | |
run: nix develop | |
- name: Format | |
run: nix develop --command treefmt --fail-on-change | |
- name: cargo-deny | |
run: nix develop --command cargo-deny check | |
- name: Clippy | |
run: nix build -L .#clippy | |
- name: Test | |
run: nix build -L .#test | |
build: | |
name: Build | |
needs: | |
- formatting-and-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v7 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
# Evaluate the devshell here so that the time reported for subsequent | |
# steps that use it reflect what is actually done there. | |
- name: Evaluate devshell | |
run: nix develop | |
- name: Build | |
run: nix build -L |