2024-10-07 21:31:56 -04:00
|
|
|
name: Run Tests
|
|
|
|
|
|
|
|
on:
|
2024-12-06 21:31:20 -05:00
|
|
|
pull_request:
|
|
|
|
merge_group:
|
2024-10-07 21:31:56 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-unit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Run Unit Tests
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: onsonr/sonr
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-10-21 11:30:52 -04:00
|
|
|
go-version: "1.23"
|
2024-10-07 21:31:56 -04:00
|
|
|
check-latest: true
|
|
|
|
- run: make test-unit
|
2024-10-21 11:30:52 -04:00
|
|
|
|
2024-10-07 21:31:56 -04:00
|
|
|
test-race:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Run Race Tests
|
|
|
|
continue-on-error: true
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: onsonr/sonr
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-10-21 11:30:52 -04:00
|
|
|
go-version: "1.23"
|
2024-10-07 21:31:56 -04:00
|
|
|
check-latest: true
|
|
|
|
- run: make test-race
|
|
|
|
|
|
|
|
test-cover:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Run Coverage Tests
|
|
|
|
continue-on-error: true
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: onsonr/sonr
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-10-21 11:30:52 -04:00
|
|
|
go-version: "1.23"
|
2024-10-07 21:31:56 -04:00
|
|
|
check-latest: true
|
|
|
|
- run: make test-cover
|