Skip to content

Commit 89e300c

Browse files
committed
feat(ci): Add CI workflow for watcher component
1 parent 4d0e8b3 commit 89e300c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/watcher.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Watcher: Build and test"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
paths:
9+
- watcher/**
10+
- .github/**
11+
branches:
12+
- main
13+
14+
permissions:
15+
contents: read
16+
pull-requests: read
17+
checks: write
18+
19+
defaults:
20+
run:
21+
working-directory: watcher
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
- uses: actions/setup-go@v5
30+
with:
31+
go-version: stable
32+
args: --timeout=5m
33+
- name: golangci-lint
34+
uses: golangci/golangci-lint-action@v6
35+
with:
36+
version: v1.60
37+
working-directory: watcher
38+
- name: Run tests
39+
run: go test -v ./...

0 commit comments

Comments
 (0)