-
Notifications
You must be signed in to change notification settings - Fork 10
/
project.json
35 lines (35 loc) · 1.23 KB
/
project.json
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
{
"name": "hostd-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/hostd-e2e/src",
"projectType": "application",
"implicitDependencies": ["hostd"],
"targets": {
"build-cluster": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cd internal/cluster && GOPRIVATE=go.sia.tech go get -u go.sia.tech/hostd@master",
"cd internal/cluster && GOPRIVATE=go.sia.tech go get -u go.sia.tech/renterd@master",
"cd internal/cluster && GOPRIVATE=go.sia.tech go get -u go.sia.tech/walletd@master",
"cd internal/cluster && go mod tidy",
"cd internal/cluster && go build -o bin/clusterd ./cmd/clusterd || echo 'BUILD FAILED'",
"git checkout internal/cluster/go.mod internal/cluster/go.sum",
"test ! -f internal/cluster/bin/clusterd && exit 1 || exit 0"
],
"parallel": false
}
},
"e2e": {
"executor": "@nx/playwright:playwright",
"outputs": ["{workspaceRoot}/dist/.playwright/apps/hostd-e2e"],
"dependsOn": ["build-cluster"],
"options": {
"config": "apps/hostd-e2e/playwright.config.ts"
}
},
"lint": {
"executor": "@nx/eslint:lint"
}
}
}