Skip to content

docs: complete README, examples, and release setup #14

docs: complete README, examples, and release setup

docs: complete README, examples, and release setup #14

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.23"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Tidy
run: go mod tidy
- name: Lint
run: go vet ./...
- name: Test
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: Build
run: go build ./cmd/watch-tower
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.os }}-${{ matrix.go }}
path: coverage.out
if-no-files-found: ignore
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.out
flags: unittests
fail_ci_if_error: false
token: ""