Skip to content

Merge pull request #14 from DeterminateSystems/update-deps #47

Merge pull request #14 from DeterminateSystems/update-deps

Merge pull request #14 from DeterminateSystems/update-deps #47

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Install magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Format
run: nix develop -c go fmt
- name: Check diff
run: git diff --exit-code
- name: Check vet
run: nix develop -c go vet
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
# We don't _actually_ have kvm on the actions runners, so this
# will use TCG (CPU emulation) and thus be a fair bit
# slower. But we care more about the test running than about it
# running fast.
extra-conf: |
extra-system-features = kvm
- name: Install magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: nix build -L
- name: Test
run: nix flake check -L
Spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Spelling
run: nix develop --command codespell --ignore-words-list crate,pullrequest,pullrequests --skip target .
NixFormatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check nixpkgs-fmt formatting
run: git ls-files '*.nix' | nix develop --command xargs nixpkgs-fmt --check
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check EditorConfig conformance
run: nix develop --command eclint