Merge pull request #4546 from Ivy-Interactive/843-fix #9382
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
| name: Backend Checks (Linux) | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| branches: [main, development] | |
| jobs: | |
| backend-checks: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Install required packages | |
| - name: Install required packages | |
| run: sudo apt-get update && sudo apt-get install -y attr | |
| # Setup Node.js (needed for integrated frontend build in dotnet build) | |
| - uses: voidzero-dev/setup-vp@v1 | |
| # Setup Java (needed for ANTLR4) | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'microsoft' | |
| java-version: '17' | |
| # Setup .NET | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "10.0.x" | |
| # Update workloads | |
| - name: Update .NET workloads | |
| run: dotnet workload update | |
| # Restore packages | |
| - name: Restore packages | |
| run: dotnet restore | |
| # Check code formatting | |
| - name: Check code formatting | |
| run: dotnet format --verify-no-changes | |
| # Build solution | |
| - name: Build solution | |
| run: dotnet build --configuration Release | |
| # Run tests | |
| - name: Run tests | |
| run: dotnet test --configuration Release --no-build --verbosity normal |