Skip to content

fix: always strip slog time field β€” process manager provides timestamps #91

fix: always strip slog time field β€” process manager provides timestamps

fix: always strip slog time field β€” process manager provides timestamps #91

Workflow file for this run

name: Build and Test
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
- name: Download dependencies
run: go mod download
- name: Run unit tests
if: matrix.os != 'ubuntu-latest'
run: go test -race ./...
- name: Run unit tests with coverage
if: matrix.os == 'ubuntu-latest'
run: go test -race -coverprofile=coverage.out ./...
- name: Build
run: go build -v -o flashduty-runner ./cmd
- name: Upload coverage
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v5
with:
files: coverage.out
fail_ci_if_error: false