Skip to content

Commit 3338817

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

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/watcher.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
- name: golangci-lint
33+
uses: golangci/golangci-lint-action@v6
34+
with:
35+
version: v1.60
36+
working-directory: watcher
37+
- name: Run tests
38+
run: go test -v ./...

0 commit comments

Comments
 (0)