Skip to content

Commit 432415d

Browse files
authored
ci: Init some CIs (#9)
* ci: Init some CIs * chore: Add an option * chore: Remove runner in nix-flake-check.yml * chore: Update treefmt.nix
1 parent 37763fe commit 432415d

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/workflows/fetch-releases.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: fetching-releases
2+
on:
3+
schedule:
4+
- cron: '0 */12 * * *'
5+
workflow_dispatch:
6+
jobs:
7+
update-sources:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/[email protected]
11+
- uses: cachix/install-nix-action@v26
12+
with:
13+
nix_path: nixpkgs=channel:nixos-unstable
14+
- run: ./fetch-releases.py
15+
- uses: stefanzweifel/[email protected]
16+
with:
17+
commit_message: "ci: Update sources.json"

.github/workflows/nix-flake-check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push, pull_request]
2+
name: nix-flake-check
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/[email protected]
8+
- uses: cachix/install-nix-action@v26
9+
with:
10+
nix_path: nixpkgs=channel:nixos-unstable
11+
- run: nix flake check --all-systems

treefmt.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
projectRootFile = "treefmt.nix";
33
programs.nixfmt.enable = true;
4+
programs.yamlfmt.enable = true;
45
}

0 commit comments

Comments
 (0)