Add Spring Boot Sample App (#807) #96
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: Dotnet Npgsql integration tests | |
| permissions: {} | |
| on: | |
| workflow_call: {} | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| create-cluster: | |
| uses: ./.github/workflows/dsql-cluster-create.yml | |
| with: | |
| workflow_name: dotnet-npgsql | |
| secrets: | |
| AWS_IAM_ROLE: ${{ secrets.DOTNET_IAM_ROLE }} | |
| permissions: | |
| id-token: write # required by aws-actions/configure-aws-credentials | |
| dotnet-npgsql-integ-test: | |
| needs: create-cluster | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # required by aws-actions/configure-aws-credentials | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| role-to-assume: ${{ secrets.DOTNET_IAM_ROLE }} | |
| aws-region: ${{ needs.create-cluster.outputs.region }} | |
| - name: Configure and run integration for npgsql | |
| working-directory: ./dotnet/npgsql | |
| env: | |
| CLUSTER_USER: "admin" | |
| CLUSTER_ENDPOINT: ${{ needs.create-cluster.outputs.cluster-endpoint }} | |
| REGION: ${{ needs.create-cluster.outputs.region }} | |
| run: | | |
| dotnet test | |
| delete-cluster: | |
| if: always() && needs.create-cluster.result == 'success' | |
| needs: [create-cluster, dotnet-npgsql-integ-test] | |
| uses: ./.github/workflows/dsql-cluster-delete.yml | |
| with: | |
| cluster-id: ${{ needs.create-cluster.outputs.cluster-id }} | |
| region: ${{ needs.create-cluster.outputs.region }} | |
| secrets: | |
| AWS_IAM_ROLE: ${{ secrets.DOTNET_IAM_ROLE }} | |
| permissions: | |
| id-token: write # required by aws-actions/configure-aws-credentials |