Implement IHasExtensions interface in GraphQLErrorsException, GraphQL… #101
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: Build Test Publish | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: # Allows manual triggering of the workflow | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release --no-restore | |
| - name: Test | |
| env: | |
| GRAPHQLSHARP_SHOP_ID: ${{ secrets.GRAPHQLSHARP_SHOP_ID }} | |
| GRAPHQLSHARP_SHOP_TOKEN: ${{ secrets.GRAPHQLSHARP_SHOP_TOKEN }} | |
| run: dotnet test --no-restore --verbosity normal | |
| - name: Publish to nuget | |
| if: github.event_name == 'workflow_dispatch' # Only runs when manually triggered for deployment | |
| run: dotnet nuget push GraphQLSharp/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json --skip-duplicate -k "${{ secrets.NUGET_API_KEY }}" |