Skip to content

fix: accept naive scheduler timestamps in cli #159

fix: accept naive scheduler timestamps in cli

fix: accept naive scheduler timestamps in cli #159

Workflow file for this run

name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: src/go.mod
cache-dependency-path: src/go.sum
- name: Install dependencies
run: |
cd src
go mod download
- name: Run linters
run: |
cd src
go fmt ./...
go vet ./...
- name: Run tests
run: |
cd src
go test ./... -v -race -coverprofile=coverage.out -covermode=atomic
- name: Check coverage
run: |
cd src
# Get total coverage
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//')
echo "Total coverage: ${COVERAGE}%"
# Minimum coverage threshold
THRESHOLD=15
if (( $(echo "$COVERAGE < $THRESHOLD" | bc -l) )); then
echo "❌ Coverage ${COVERAGE}% is below ${THRESHOLD}% threshold"
exit 1
fi
echo "✅ Coverage ${COVERAGE}% meets ${THRESHOLD}% threshold"
- name: Upload coverage
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
files: ./src/coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false