refactor(ci): Split CI into separate workflows and upgrade to .NET 10 #15
Workflow file for this run
This file contains hidden or 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
| # Test and coverage workflow | |
| # Uses XPlat Code Coverage (built-in) + Codecov for reporting | |
| name: Test | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Test with coverage | |
| run: > | |
| dotnet test src/Nethermind.Arbitrum.Test/Nethermind.Arbitrum.Test.csproj | |
| --configuration Release | |
| --collect:"XPlat Code Coverage" | |
| --results-directory ./coverage | |
| -- | |
| DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura | |
| DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Include=[Nethermind.Arbitrum*]* | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage | |
| fail_ci_if_error: false |