nix.nvim/.github/workflows/check.yml
jiriks74 3fd70395b5
All checks were successful
Perform checks / formatting (pull_request) Successful in 40s
Perform checks / nix_flake_check (pull_request) Successful in 47s
Perform checks / nix_build (pull_request) Successful in 2m54s
Perform checks / formatting (push) Successful in 39s
Perform checks / nix_flake_check (push) Successful in 46s
Perform checks / nix_build (push) Successful in 3m3s
fix(ci/check): Add missing lines for action cache
2024-11-29 03:57:09 +01:00

53 lines
1.5 KiB
YAML

name: Perform checks
on:
push:
pull_request:
workflow_dispatch:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix fmt
run: nix fmt -- --check .
nix_flake_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix flake check
run: nix flake check
nix_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Build nvim
run: nix build .\#default