diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1da29ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: "Check Build" + +on: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Project + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Debug --no-restore + + - name: Test + run: dotnet test --no-build --configuration Debug --verbosity normal \ No newline at end of file diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index f5e8b3d..2c33717 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -6,8 +6,6 @@ on: jobs: deploy: runs-on: ubuntu-latest - env: - DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - name: Checkout Project @@ -22,13 +20,10 @@ jobs: run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore - - - name: Test - run: dotnet test --no-build --configuration Release --verbosity normal + run: dotnet build --configuration Release --no-restore Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj - name: Pack - run: dotnet pack --no-build --configuration Release Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj --output . + run: dotnet pack --no-build --configuration Release Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj --output . - name: Push to nuget.org run: dotnet nuget push *.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate \ No newline at end of file