Skip to content

Commit 1bf65a5

Browse files
committed
WIP: CI
1 parent 070cc1b commit 1bf65a5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Integration tests for dotfiles! Has DevOps gone too far?
2+
3+
name: "Run setup scripts"
4+
5+
on:
6+
push:
7+
8+
jobs:
9+
run:
10+
name: Run setup scripts
11+
runs-on: macos-latest
12+
13+
steps:
14+
- uses: actions/checkout@4
15+
16+
- name: Install Nix
17+
run: sh <(curl -L https://nixos.org/nix/install)
18+
19+
- name: Install `nix-darwin`
20+
run: |
21+
nix --extra-experimental-features 'nix-command flakes' flake init -t nix-darwin
22+
23+
- name: Setup `nix-darwin`
24+
run: nix --extra-experimental-features 'nix-command flakes' run nix-darwin -- switch --flake flake.nix
25+
26+
# - name: Rebuild system
27+
# run: darwin-rebuild switch --flake ~/.config/nix-darwin

0 commit comments

Comments
 (0)