generated from kachick/anylang-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
45 lines (43 loc) · 1.56 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# https://taskfile.dev
version: '3'
tasks:
default:
deps:
- task: fmt
- task: lint
- task: build
- task: test
check:
deps:
- task: test
- task: lint
build:
cmds:
- go build ./...
test:
cmds:
- go test ./...
test-all:
cmds:
- go test -count=1 -tags=apitest ./...
fmt:
cmds:
- dprint fmt
- git ls-files '*.nix' | xargs nix fmt
lint:
cmds:
- dprint check
- typos . .github .vscode
- git ls-files '*.nix' | xargs nixfmt --check
snapshot:
cmds:
- go run ./cmd/gwurl 'https://dl.google.com/tag/s/appguid%3D%7BDDCCD2A9-025E-4142-BCEB-F467B88CF830%7D%26iid%3D%7BBF6725E7-4A15-87B7-24D5-0ADABEC753EE%7D%26lang%3Dja%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520%25E6%2597%25A5%25E6%259C%25AC%25E8%25AA%259E%25E5%2585%25A5%25E5%258A%259B%26needsadmin%3Dtrue%26ap%3Dexternal-stable-universal/japanese-ime/GoogleJapaneseInputSetup.exe' | sort --stable --dictionary-order | tee ./snapshots/JapaneseIME.txt
- go run ./cmd/gwurl 'https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B69ED4A6C-1B6F-4C8F-9298-FC4A61FC55C4%7D%26lang%3Dja%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-statsdef_1%26installdataindex%3Dempty/update2/installers/ChromeSetup.exe' | sort --stable --dictionary-order | tee ./snapshots/Chrome.txt
deps:
cmds:
- nix --version
- nil --version
- task --version
- dprint --version
- typos --version
- go version