feat: Support find-and-replace policy in the compiler #297
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: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build with dotnet | |
run: dotnet build --no-restore | |
- name: Test with dotnet | |
run: dotnet test --no-build --logger trx --results-directory "TestResults" | |
- name: Upload dotnet test results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dotnet-test-results | |
path: TestResults | |
- name: Check format | |
if: ${{ always() }} | |
run: dotnet format style --verify-no-changes --report "FormatReport" | |
- name: Upload dotnet test results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dotnet-format-report | |
path: FormatReport | |