-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.yaml
More file actions
57 lines (57 loc) · 1.17 KB
/
tasks.yaml
File metadata and controls
57 lines (57 loc) · 1.17 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
57
tasks:
build:
label: Build the project
command: dotnet
args:
- build
test:
label: Run tests
command: dotnet
args:
- test
dependsOn:
- build
allowConcurrent: true
clean:
label: Clean build artifacts
command: dotnet
args:
- clean
restore:
label: Restore packages
command: dotnet
args:
- restore
yaml-test:
label: YAML specific task
command: echo
args:
- "This task is from YAML"
echo-env:
label: Example with environment variables
command: echo
args:
- "$MY_VAR $ANOTHER_VAR"
env:
MY_VAR: "Hello from YAML"
ANOTHER_VAR: "custom value"
parallel-yaml-example:
label: Example of parallel task in YAML
command: echo
args:
- "This task is from YAML"
parallel-yaml-example:
label: Example of parallel task in YAML
command: echo
args:
- "This YAML task can run in parallel"
allowConcurrent: true
custom-dir-env:
label: Example with custom directory and environment
command: sh
args:
- "-c"
- "echo Working in: $(pwd) with VAR=$BUILD_ENV"
cwd: "/tmp"
env:
BUILD_ENV: "production"