Extra tests #44
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: ["master"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Add RobloxCS GitHub packages source to NuGet | |
run: dotnet nuget add source --store-password-in-clear-text -u roblox-csharp -p ${{ secrets.GITHUB_TOKEN }} -n rbxcs "https://nuget.pkg.github.com/roblox-csharp/index.json" | |
- name: Install ReportGenerator | |
run: dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.* | |
- name: Configure PATH for tools | |
run: echo "/home/runner/.dotnet/tools" >> $GITHUB_PATH | |
- name: Run tests and generate coverage | |
run: | | |
chmod +x ./RobloxCS.Tests/lune | |
dotnet test -c Release --collect:"XPlat Code Coverage" | |
- name: Convert coverage to LCOV | |
run: | | |
reportgenerator -reports:"**/TestResults/**/*.cobertura.xml" -targetdir:"coverage" -reporttypes:lcov | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
- name: Report coverage | |
continue-on-error: true | |
uses: coverallsapp/github-action@v2.3.4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: coverage/lcov.info |