Skip to content

Add thread safety to resolve race conditions in Issues #305 and #335 #708

Add thread safety to resolve race conditions in Issues #305 and #335

Add thread safety to resolve race conditions in Issues #305 and #335 #708

Workflow file for this run

name: Run Tests
# Triggers the workflow on push or pull request events
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go: [ '1.23', '1.24' ]
runs-on: ubuntu-latest
name: Go ${{ matrix.go }} Tests
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Run all tests
run: go test -v github.com/knadh/koanf...
- name: Run Coverage
run: go test -v -cover ./...
race:
runs-on: ubuntu-latest
name: Race Detection Tests
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
check-latest: true
- name: Run race detection tests
run: go test -race -v github.com/knadh/koanf...