dotfiles/.github/workflows/check.dhall

33 lines
1.1 KiB
Text
Raw Normal View History

2024-05-11 03:00:26 +02:00
let GithubActions =
https://github.com/regadas/github-actions-dhall/raw/master/package.dhall
sha256:9c1ae46a1d56f1c22dbc9006cbb3e569806e75d02fded38fa102935b34980395
2024-05-16 02:06:57 +02:00
let NIX_CONFIG = "accept-flake-config = true"
2024-05-11 03:00:26 +02:00
let check =
GithubActions.Job::{
, runs-on = GithubActions.RunsOn.Type.ubuntu-latest
, steps =
[ GithubActions.Step::{ uses = Some "actions/checkout@v4.1.7" }
2024-05-11 03:00:26 +02:00
, GithubActions.Step::{
, uses = Some "DeterminateSystems/flake-checker-action@v8"
2024-05-11 03:00:26 +02:00
}
, GithubActions.Step::{
, uses = Some "DeterminateSystems/nix-installer-action@v11"
}
, GithubActions.Step::{
, uses = Some "DeterminateSystems/magic-nix-cache-action@v7"
2024-05-11 03:00:26 +02:00
}
2024-05-16 02:06:57 +02:00
, GithubActions.Step::{ run = Some "nix flake check --show-trace" }
2024-05-11 03:00:26 +02:00
]
}
in GithubActions.Workflow::{
, name = "check"
, on = GithubActions.On::{
, push = Some GithubActions.Push::{ paths = Some [ "**.nix", "**.lock" ] }
}
2024-05-16 02:06:57 +02:00
, env = Some (toMap { NIX_CONFIG })
2024-05-11 03:00:26 +02:00
, jobs = toMap { check }
}