Fix language version errors, GA push filters #289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C# | |
on: | |
push: | |
paths: | |
- 'csharp/**' | |
- '!csharp/README.rst' | |
- '.github/workflows/csharp.yml' | |
schedule: | |
- cron: "0 0 1 * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
csharp: | |
strategy: | |
fail-fast: false | |
matrix: | |
net_version: [2, 3, 5, 6, 7, 8, 9] | |
os: [ubuntu-latest] | |
include: | |
- net_version: 6 | |
os: macos-latest | |
- net_version: 6 | |
os: macos-13 | |
- net_version: 6 | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET ${{ matrix.net_version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.net_version }} | |
cache: true | |
cache-dependency-path: 'csharp/*/packages.lock.json' | |
- name: Dependencies | |
run: make cs_dependencies | |
- name: Run Tests | |
run: | | |
make cs_test COV=true | |
mv csharp/Euler.Test/TestResults/*/coverage.cobertura.xml ./ | |
# - name: Setup upterm session | |
# uses: lhotari/action-upterm@v1 | |
# with: | |
# wait-timeout-minutes: 5 | |
# limit-access-to-actor: true | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: Csharp |