mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- feature/*
|
|
|
|
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:
|
|
go-version: "1.22"
|
|
check-latest: true
|
|
- run: make test-unit
|
|
|
|
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:
|
|
go-version: "1.22"
|
|
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:
|
|
go-version: "1.22"
|
|
check-latest: true
|
|
- run: make test-cover
|