Skip to content

Commit 55700e1

Browse files
committed
WIP: CI
1 parent 070cc1b commit 55700e1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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@v4
15+
16+
# - name: Install Nix
17+
# run: sh <(curl -L https://nixos.org/nix/install)
18+
19+
- uses: cachix/install-nix-action@v27
20+
- name: Clean
21+
run: rm /etc/nix/nix.conf
22+
23+
# - name: Install `nix-darwin`
24+
# run: |
25+
# nix --extra-experimental-features 'nix-command flakes' flake init -t nix-darwin
26+
27+
- name: Setup `nix-darwin`
28+
run: nix --extra-experimental-features 'nix-command flakes' run nix-darwin -- switch --flake .#hostname
29+
30+
- name: Rebuild system
31+
run: darwin-rebuild switch --flake .#hostname

0 commit comments

Comments
 (0)