Skip to content

Added tests for .Net #16

Added tests for .Net

Added tests for .Net #16

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
go-tests:
concurrency:
group: go-tests-${{ github.event_name }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
go-version: [1.22.x, 1.23.x]
os: [ubuntu]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install dependencies
run: |
go get github.com/stretchr/[email protected]
go mod tidy
- name: Run tests
run: go test ./...
dotnet-tests:
concurrency:
group: dotnet-tests-${{ github.event_name }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.dotnet-version }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
os: [ubuntu]
dotnet-version: [ 6.0.x, 7.0.x ]
include:
- dotnet-version: 6.0.x
dotnet-target-framework: net6.0
- dotnet-version: 7.0.x
dotnet-target-framework: net7.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Test
run: |
cd tests
dotnet test -f ${{ matrix.dotnet-target-framework }}