Skip to content

Commit

Permalink
Added tests for dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov authored and 1NepuNep1 committed Jan 20, 2025
1 parent 03f7b7e commit 8a35de4
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,53 @@ on:
workflow_dispatch:

jobs:
go-tests:
go:
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, windows, macos]

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 ./...
run: go test ./...
dotnet:
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 }}-latest
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 }}

0 comments on commit 8a35de4

Please sign in to comment.