Skip to content

Commit

Permalink
feat(ci): Add CI workflow for watcher component
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoKF committed Sep 12, 2024
1 parent 4d0e8b3 commit 3338817
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/watcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Watcher: Build and test"

on:
push:
branches:
- main
pull_request:
paths:
- watcher/**
- .github/**
branches:
- main

permissions:
contents: read
pull-requests: read
checks: write

defaults:
run:
working-directory: watcher

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
working-directory: watcher
- name: Run tests
run: go test -v ./...

0 comments on commit 3338817

Please sign in to comment.