File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,57 +8,4 @@ name: raid
88repositories :
99 - name : raid
1010 path : ~/Developer/raid
11- url : https://github.com/8bitAlex/raid.git
12-
13- commands :
14- - name : test
15- usage : Build and run all tests for the raid app and docsite
16- tasks :
17- - type : Print
18- message : " ==> Building raid app"
19- color : cyan
20- - type : Shell
21- name : Build raid app
22- cmd : go build ./...
23- path : ~/Developer/raid
24- - type : Print
25- message : " ==> Testing raid app"
26- color : cyan
27- - type : Shell
28- name : Test raid app
29- cmd : go test ./...
30- path : ~/Developer/raid
31- - type : Print
32- message : " ==> Building docsite"
33- color : cyan
34- - type : Shell
35- name : Build docsite
36- cmd : npm install && npm run build
37- path : ~/Developer/raid/site
38- - type : Print
39- message : " ==> Testing docsite"
40- color : cyan
41- - type : Shell
42- name : Test docsite
43- cmd : npm test
44- path : ~/Developer/raid/site
45- - type : Print
46- message : " ==> Type-checking docsite"
47- color : cyan
48- - type : Shell
49- name : Type-check docsite
50- cmd : npm run typecheck
51- path : ~/Developer/raid/site
52- - type : Print
53- message : " ==> Coverage report"
54- color : cyan
55- - type : Shell
56- name : Test coverage report
57- literal : true
58- cmd : |-
59- go test -coverpkg=./src/... -coverprofile=/tmp/raid-coverage.out ./... > /dev/null && go tool cover -func=/tmp/raid-coverage.out | awk 'END {print "Total coverage: " $NF}'
60- path : ~/Developer/raid
61- - type : Print
62- message : " ==> Tests completed"
63- color : green
64-
11+ url : https://github.com/8bitAlex/raid.git
Original file line number Diff line number Diff line change 1- # Uses local schema for development
21# yaml-language-server: $schema=./schemas/raid-repo.schema.json
32
43# Required for YAML support in VSCode
76name : raid
87branch : main
98
9+ install :
10+ tasks :
11+ - type : Shell
12+ name : Install Node.js (macOS)
13+ cmd : brew install node
14+ condition :
15+ platform : darwin
16+ cmd : " ! which node"
17+ - type : Shell
18+ name : Install Node.js (Linux)
19+ cmd : sudo apt-get update && sudo apt-get install -y nodejs npm
20+ condition :
21+ platform : linux
22+ cmd : " ! which node"
23+ - type : Shell
24+ name : Install dependencies
25+ cmd : cd ./site && npm install
26+
1027commands :
1128 - name : serve
1229 usage : Serve the docsite
1330 tasks :
1431 - type : Shell
1532 name : Serve docsite
16- cmd : cd ./site && npm install && npm run serve
33+ cmd : cd ./site && npm install && npm run serve
34+ - name : test
35+ usage : Build and run all tests for the raid app and docsite
36+ tasks :
37+ - type : Print
38+ message : " ==> Building raid app"
39+ color : cyan
40+ - type : Shell
41+ name : Build raid app
42+ cmd : go build ./...
43+ path : ~/Developer/raid
44+ - type : Print
45+ message : " ==> Testing raid app"
46+ color : cyan
47+ - type : Shell
48+ name : Test raid app
49+ cmd : go test ./...
50+ path : ~/Developer/raid
51+ - type : Print
52+ message : " ==> Building docsite"
53+ color : cyan
54+ - type : Shell
55+ name : Build docsite
56+ cmd : npm install && npm run build
57+ path : ~/Developer/raid/site
58+ - type : Print
59+ message : " ==> Testing docsite"
60+ color : cyan
61+ - type : Shell
62+ name : Test docsite
63+ cmd : npm test
64+ path : ~/Developer/raid/site
65+ - type : Print
66+ message : " ==> Type-checking docsite"
67+ color : cyan
68+ - type : Shell
69+ name : Type-check docsite
70+ cmd : npm run typecheck
71+ path : ~/Developer/raid/site
72+ - type : Print
73+ message : " ==> Coverage report"
74+ color : cyan
75+ - type : Shell
76+ name : Test coverage report
77+ literal : true
78+ cmd : |-
79+ go test -coverpkg=./src/... -coverprofile=/tmp/raid-coverage.out ./... > /dev/null && go tool cover -func=/tmp/raid-coverage.out | awk 'END {print "Total coverage: " $NF}'
80+ path : ~/Developer/raid
81+ - type : Print
82+ message : " ==> Tests completed"
83+ color : green
You can’t perform that action at this time.
0 commit comments