feat(ingestion): optional connectorVersion on SourceDataInput #1145
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
| name: PR Test | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - "main" # Need to run for codecov to compare against the BASE | |
| jobs: | |
| build: | |
| env: | |
| Solution: "Speckle.Sdk.slnx" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Checkout Bundle Spec Repo | |
| uses: ./.github/actions/checkout-bundle-spec | |
| with: | |
| token: ${{ secrets.CONNECTORS_GH_TOKEN }} | |
| # actions/checkout cannot write outside $GITHUB_WORKSPACE, but the csproj expects the spec one | |
| # level up from the SDK checkout — move it there (also keeps it out of `csharpier check .`). | |
| - name: Move speckle-bundle-spec to sibling location | |
| run: mv speckle-bundle-spec "$GITHUB_WORKSPACE/../speckle-bundle-spec" | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.2xx #Keep aligned with global.json | |
| cache: true | |
| cache-dependency-path: "**/packages.lock.json" | |
| - name: 📦 Tool Restore | |
| run: dotnet tool restore | |
| - name: 📄 Format | |
| run: dotnet csharpier check . | |
| - name: 📦 Restore | |
| run: dotnet restore ${{ env.Solution }} --locked-mode | |
| - name: 🏗️ Build | |
| run: dotnet build ${{ env.Solution }} --configuration Release --no-restore -warnaserror | |
| - name: 🔨 Unit Tests | |
| run: dotnet test ${{ env.Solution }} --configuration Release --filter "Category!=Integration" --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage | |
| - name: 🎁 Pack | |
| run: dotnet pack ${{ env.Solution }} --configuration Release --no-build | |
| - name: Upload coverage reports to Codecov with GitHub Action | |
| uses: codecov/codecov-action@v7 | |
| continue-on-error: true | |
| with: | |
| fail_ci_if_error: true | |
| files: tests/**/coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| integration-test-internal: | |
| uses: "./.github/workflows/integration-test.yml" | |
| with: | |
| docker-compose-file: "docker-compose-internal.yml" | |
| use-internal-image: true | |
| secrets: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| BUNDLE_SPEC_TOKEN: ${{ secrets.CONNECTORS_GH_TOKEN }} | |
| integration-test-public: | |
| uses: "./.github/workflows/integration-test.yml" | |
| with: | |
| docker-compose-file: "docker-compose.yml" | |
| secrets: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| BUNDLE_SPEC_TOKEN: ${{ secrets.CONNECTORS_GH_TOKEN }} |