name: CI # Build + test gate. Runs on pushes to the long-lived branches and on every PR so # the 39-test suite (and both builds) must pass before merge. on: push: branches: [main, develop] pull_request: jobs: backend: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - name: Restore run: dotnet restore InboxIntel.sln - name: Build run: dotnet build InboxIntel.sln -c Release --no-restore - name: Test run: dotnet test InboxIntel.sln -c Release --no-build --verbosity normal frontend: runs-on: ubuntu-latest defaults: run: working-directory: frontend steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' - name: Install run: npm ci - name: Build run: npm run build