-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
48 lines (39 loc) · 1.24 KB
/
taskfile.yaml
File metadata and controls
48 lines (39 loc) · 1.24 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
version: '3'
tasks:
# Unit Tests
test:
cmds:
# The idiomatic way to disable test caching explicitly is to use -count=1
- go test ./internal/... -count=1 -v --failfast
# Linting
lint:
cmds:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin
- $GOPATH/bin/golangci-lint run -v -c .golangci.yml ./...
# E2E Tests
build:
cmds:
- go build -o $GOPATH/bin/argocd-mcp-server main.go
podman-compose-build:
cmds:
- podman-compose build
podman-compose-up:
cmds:
# --build is used to build the images if they are not already built
- podman-compose up -d --build
podman-compose-down:
cmds:
- podman-compose down
test-e2e:
deps:
- build
- podman-compose-up
cmds:
# The idiomatic way to disable test caching explicitly is to use -count=1
- go test github.com/codeready-toolchain/argocd-mcp-server/test/e2e/... -count=1 -v -failfast
build-image:
cmds:
- podman build --no-cache -t argocd-mcp-server:latest . -f Containerfile
build-image-linux-amd64:
cmds:
- podman build --platform linux/amd64 --no-cache -t argocd-mcp-server:amd64 . -f Containerfile