-
Notifications
You must be signed in to change notification settings - Fork 3
/
tasks.yaml
38 lines (33 loc) · 1.03 KB
/
tasks.yaml
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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
includes:
- test: tasks/test.yaml
- lint: tasks/lint.yaml
- setup: tasks/setup.yaml
- build: tasks/build.yaml
- swagger: tasks/swagger.yaml
variables:
- name: REF
description: "reference for the runtime image and zarf package"
# x-release-please-start-version
default: 0.8.0
# x-release-please-end
- name: DIR
description: "directory of the zarf.yaml"
default: .
tasks:
- name: dev-server
description: "run the api server in dev mode (requires air https://github.com/air-verse/air?tab=readme-ov-file#installation)"
actions:
- cmd: go install github.com/air-verse/air@latest
- cmd: air -c .air.toml
- name: dev-ui
description: "run the ui in dev mode"
actions:
- cmd: npm ci && npm run dev
dir: ui
- name: compile
description: "compile the api server and ui outputting to build/"
actions:
- task: build:ui
- task: build:api