File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ permissions :
10+ contents : read
11+
12+ concurrency :
13+ group : ci-${{ github.ref }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ check :
18+ runs-on : ubuntu-24.04-arm
19+
20+ steps :
21+ - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
22+ with :
23+ persist-credentials : false
24+
25+ - name : set up nushell
26+ uses : hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30 # v3.22
27+ with :
28+ version : " 0.109"
29+
30+ - shell : nu {0}
31+ run : |
32+ ls **/*.nu
33+ | where name != "mod.nu"
34+ | par-each { |it|
35+ let path = $it.name
36+ nu --ide-check 100 $path
37+ | from json --objects
38+ | where type != hint
39+ | if ($in | is-not-empty) {
40+ print $"Errors in ($path):";
41+ print $in;
42+ print "\n";
43+ exit 1;
44+ }
45+ }
You can’t perform that action at this time.
0 commit comments