chore: fix dependabot file syntax #691
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: On pull request | |
| on: | |
| pull_request: | |
| branches: [main] | |
| env: | |
| V1_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }} | |
| MOMENTO_API_KEY: ${{ secrets.ALPHA_API_KEY_V2 }} | |
| MOMENTO_ENDPOINT: "cell-alpha-dev.preprod.a.momentohq.com" | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "6.0.x" | |
| - run: make format-check | |
| build_csharp: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| grpc-web: [false, true] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Get current time | |
| uses: gerred/actions/current-time@master | |
| id: current-time | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "6.0.x" | |
| - name: Verify README generation | |
| uses: momentohq/standards-and-practices/github-actions/oss-readme-template@gh-actions-v2 | |
| with: | |
| project_status: official | |
| project_stability: stable | |
| project_type: sdk | |
| sdk_language: .NET | |
| template_file: ./README.template.md | |
| output_file: ./README.md | |
| dev_docs_slug: dotnet | |
| - name: Commitlint and Other Shared Build Steps | |
| uses: momentohq/standards-and-practices/github-actions/shared-build@gh-actions-v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build | |
| run: make GRPC_WEB=${{ matrix.grpc-web }} build | |
| - name: Test | |
| run: make prod-test | |
| build_examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup repo | |
| uses: actions/checkout@v2 | |
| - name: Set up dotnet | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "6.0.x" | |
| - name: Run MomentoApplication example | |
| id: validation-momentoapplication | |
| continue-on-error: true | |
| working-directory: ./examples/MomentoApplication | |
| run: dotnet run | |
| - name: Run MomentoWeb example | |
| id: validation-momento-web | |
| continue-on-error: true | |
| working-directory: ./examples/MomentoWeb | |
| run: dotnet run | |
| - name: Run doc API snippets | |
| id: validation-docexampleapis | |
| continue-on-error: true | |
| working-directory: ./examples/DocExampleApis | |
| run: dotnet run | |
| - name: Test example failure | |
| id: test-example-failure | |
| run: | | |
| if [[ "${{ steps.validation-momentoapplication.outcome }}" == "failure" || "${{ steps.validation-momento-web.outcome }}" == "failure" || "${{ steps.validation-docexampleapis.outcome }}" == "failure" ]] | |
| then | |
| echo "failure=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "failure=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Send CI failure mail | |
| if: ${{ steps.test-example-failure.outputs.failure == 'true' }} | |
| uses: momentohq/standards-and-practices/github-actions/error-email-action@gh-actions-v1 | |
| with: | |
| username: ${{secrets.MOMENTO_ROBOT_GMAIL_USERNAME}} | |
| password: ${{secrets.MOMENTO_ROBOT_GMAIL_PASSWORD}} | |
| - name: Flag Job Failure | |
| if: ${{ steps.test-example-failure.outputs.failure == 'true' }} | |
| run: exit 1 | |
| test_momento_local: | |
| strategy: | |
| matrix: | |
| # TODO: Add windows-latest back in once we have a momento-local image for windows/amd64 as per the error: | |
| # "docker: no matching manifest for windows/amd64 10.0.20348 in the manifest list entries."" | |
| # os: [ubuntu-latest, windows-latest] | |
| os: [ubuntu-latest] | |
| grpc-web: [false, true] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "6.0.x" | |
| - name: Build | |
| run: make GRPC_WEB=${{ matrix.grpc-web }} build | |
| - name: Start Momento Local | |
| run: | | |
| docker run --cap-add=NET_ADMIN -d --rm -p 8080:8080 -p 9090:9090 gomomento/momento-local --enable-test-admin | |
| - name: Run momento-local retry tests | |
| run: make test-retry |