2021-09-29 16:04:26 +02:00
|
|
|
# netxlite runs unit and integration tests on our fundamental net library
|
|
|
|
name: netxlite
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
2022-05-24 21:01:15 +02:00
|
|
|
- "release/**"
|
2021-09-29 16:04:26 +02:00
|
|
|
jobs:
|
2022-05-13 14:39:06 +02:00
|
|
|
test_netxlite_package:
|
2021-09-29 16:04:26 +02:00
|
|
|
runs-on: "${{ matrix.os }}"
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-22 18:11:37 +02:00
|
|
|
go: [ "1.18.2" ]
|
2021-09-29 16:04:26 +02:00
|
|
|
os: [ "ubuntu-20.04", "windows-2019", "macos-10.15" ]
|
|
|
|
steps:
|
2022-05-13 14:39:06 +02:00
|
|
|
- uses: magnetikonline/action-golang-cache@v2
|
2021-09-29 16:04:26 +02:00
|
|
|
with:
|
|
|
|
go-version: "${{ matrix.go }}"
|
2022-05-13 14:39:06 +02:00
|
|
|
cache-key-suffix: "-coverage-${{ matrix.go }}"
|
2021-09-29 16:04:26 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: go test -race ./internal/netxlite/...
|