11name : " Test"
22on :
33 pull_request :
4+ paths :
5+ - ' flake.nix'
6+ - ' flake.lock'
7+ - ' **.nix'
8+ - ' .github/workflows/**'
49 push :
10+ paths :
11+ - ' flake.nix'
12+ - ' flake.lock'
13+ - ' **.nix'
14+ - ' .github/workflows/**'
15+
516jobs :
617 nix-flake-check :
718 runs-on : ubuntu-latest
19+ if : ${{ always() }}
820 steps :
921 - uses : actions/checkout@v3
1022 - uses : cachix/install-nix-action@v22
@@ -14,12 +26,12 @@ jobs:
1426 with :
1527 name : sandptel
1628 authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
17-
1829 - run : nix flake check
1930 - run : echo "The following changes do not evaluate as proper nix expressions - https://nix.dev/manual/nix/2.17/command-ref/new-cli/nix3-flake-check"
2031
2132 ilia :
2233 runs-on : ubuntu-latest
34+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'ilia') || contains(github.event.push.added || github.event.pull_request.added, 'ilia') }}
2335 steps :
2436 - uses : actions/checkout@v3
2537 - uses : cachix/install-nix-action@v22
3345
3446 rofication :
3547 runs-on : ubuntu-latest
48+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'rofication') || contains(github.event.push.added || github.event.pull_request.added, 'rofication') }}
3649 steps :
3750 - uses : actions/checkout@v3
3851 - uses : cachix/install-nix-action@v22
4659
4760 regolith-powerd-inputd-displayd :
4861 runs-on : ubuntu-latest
62+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-powerd') ||
63+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-inputd') ||
64+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-displayd') ||
65+ contains(github.event.push.modified || github.event.pull_request.modified, 'libtrawldb') ||
66+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-powerd') ||
67+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-inputd') ||
68+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-displayd') ||
69+ contains(github.event.push.added || github.event.pull_request.added, 'libtrawldb') }}
4970 steps :
5071 - uses : actions/checkout@v3
5172 - uses : cachix/install-nix-action@v22
6283
6384 sway-regolith :
6485 runs-on : ubuntu-latest
86+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'sway-regolith') || contains(github.event.push.added || github.event.pull_request.added, 'sway-regolith') }}
6587 steps :
6688 - uses : actions/checkout@v3
6789 - uses : cachix/install-nix-action@v22
7597
7698 trawl :
7799 runs-on : ubuntu-latest
100+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'trawl') || contains(github.event.push.added || github.event.pull_request.added, 'trawl') }}
78101 steps :
79102 - uses : actions/checkout@v3
80103 - uses : cachix/install-nix-action@v22
88111
89112 xrescat :
90113 runs-on : ubuntu-latest
114+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'xrescat') || contains(github.event.push.added || github.event.pull_request.added, 'xrescat') }}
91115 steps :
92116 - uses : actions/checkout@v3
93117 - uses : cachix/install-nix-action@v22
@@ -101,6 +125,7 @@ jobs:
101125
102126 fhs :
103127 runs-on : ubuntu-latest
128+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'fhs') || contains(github.event.push.added || github.event.pull_request.added, 'fhs') }}
104129 steps :
105130 - uses : actions/checkout@v3
106131 - uses : cachix/install-nix-action@v22
@@ -114,6 +139,7 @@ jobs:
114139
115140 virtual-machine :
116141 runs-on : ubuntu-latest
142+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'vm') || contains(github.event.push.added || github.event.pull_request.added, 'vm') }}
117143 steps :
118144 - uses : actions/checkout@v3
119145 - uses : cachix/install-nix-action@v22
@@ -127,6 +153,8 @@ jobs:
127153
128154 regolith-session :
129155 runs-on : ubuntu-latest
156+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-session') ||
157+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-session') }}
130158 steps :
131159 - uses : actions/checkout@v3
132160 - uses : cachix/install-nix-action@v22
@@ -142,6 +170,12 @@ jobs:
142170
143171 status-bar :
144172 runs-on : ubuntu-latest
173+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'i3-swap-focus') ||
174+ contains(github.event.push.modified || github.event.pull_request.modified, 'i3status-rs') ||
175+ contains(github.event.push.modified || github.event.pull_request.modified, 'i3xrocks') ||
176+ contains(github.event.push.added || github.event.pull_request.added, 'i3-swap-focus') ||
177+ contains(github.event.push.added || github.event.pull_request.added, 'i3status-rs') ||
178+ contains(github.event.push.added || github.event.pull_request.added, 'i3xrocks') }}
145179 steps :
146180 - uses : actions/checkout@v3
147181 - uses : cachix/install-nix-action@v22
@@ -157,6 +191,20 @@ jobs:
157191
158192 regolith-config-styles-essentials :
159193 runs-on : ubuntu-latest
194+ if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-wm-config') ||
195+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-xresources') ||
196+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-ftue') ||
197+ contains(github.event.push.modified || github.event.pull_request.modified, 'remontoire') ||
198+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-styles') ||
199+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-look-default') ||
200+ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-look-extra') ||
201+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-wm-config') ||
202+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-xresources') ||
203+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-ftue') ||
204+ contains(github.event.push.added || github.event.pull_request.added, 'remontoire') ||
205+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-styles') ||
206+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-look-default') ||
207+ contains(github.event.push.added || github.event.pull_request.added, 'regolith-look-extra') }}
160208 steps :
161209 - uses : actions/checkout@v3
162210 - uses : cachix/install-nix-action@v22
@@ -173,4 +221,3 @@ jobs:
173221 - run : nix build .#regolith-styles
174222 - run : nix build .#regolith-look-default
175223 - run : nix build .#regolith-look-extra
176-
0 commit comments