-
Notifications
You must be signed in to change notification settings - Fork 257
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
56 lines (50 loc) · 2.01 KB
/
Copy pathTaskfile.yaml
File metadata and controls
56 lines (50 loc) · 2.01 KB
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
46
47
48
49
50
51
52
53
54
55
56
# prqlc Taskfile - core development tasks for fast iteration.
#
# This file contains tasks for prqlc development:
# - test: Fast inner-loop test (~5s) - run during development
# - test-all: Comprehensive test with coverage (~30s) - run before committing
# - pull-request: Complete PR checks (test-all + lint)
#
# For repo-wide operations (lint, setup), use tasks from the root Taskfile.
version: "3"
includes:
bindings-python:
taskfile: ./bindings/prqlc-python
dir: ./bindings/prqlc-python
vars:
packages_core: -p prqlc-parser -p prqlc
packages_addon: -p prqlc-macros -p compile-files
packages_bindings: -p prql -p prql-java -p prqlc-js -p prqlc-c -p prqlc-python
tasks:
test:
desc: Fast inner-loop test, accepting snapshots (run during development).
env:
NEXTEST_STATUS_LEVEL: fail
NEXTEST_FINAL_STATUS_LEVEL: slow
NEXTEST_HIDE_PROGRESS_BAR: "true"
cmds:
# --dnd: nextest doesn't support doctests, so we run them separately below
- cargo insta test --accept --dnd {{.packages_core}} --test-runner=nextest
- cargo test --doc {{.packages_core}}
- cargo clippy --fix --allow-dirty --allow-staged {{.packages_core}}
test-all:
desc: Comprehensive prqlc test with coverage, accepting snapshots.
env:
NEXTEST_STATUS_LEVEL: fail
NEXTEST_FINAL_STATUS_LEVEL: slow
NEXTEST_HIDE_PROGRESS_BAR: "true"
cmds:
- cargo insta test --accept --dnd --features=default,test-dbs
--test-runner=nextest --unreferenced=auto {{.packages_core}}
{{.packages_addon}} {{.packages_bindings}}
- cargo test --doc --features=default,test-dbs {{.packages_core}}
{{.packages_addon}} {{.packages_bindings}}
- cargo llvm-cov --lcov --output-path lcov.info
--features=default,test-dbs nextest {{.packages_core}}
{{.packages_addon}} {{.packages_bindings}}
pull-request:
desc: Complete PR checks (combines test-all + lint).
cmds:
- task: test-all
# Lint is repo-wide, so call it from root
- task: :lint