Build artifacts and run dev branch tests (registry-name=, server-tag=) #231
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 and test dev | |
| run-name: Build artifacts and run dev branch tests (registry-name=${{ inputs.registry-name }}, server-tag=${{ inputs.server-tag }}) | |
| permissions: | |
| # This is required for requesting the OIDC token | |
| id-token: write | |
| contents: read | |
| # Trigger test workflow whenever: | |
| # 1. Commits are pushed directly to a CLIENT branch | |
| # 2. Pull requests to stage branch are updated | |
| on: | |
| push: | |
| branches: ["CLIENT*"] | |
| pull_request: | |
| branches: ["stage"] | |
| types: [ | |
| # Default triggers | |
| opened, | |
| synchronize, | |
| reopened, | |
| # Additional triggers | |
| labeled, | |
| unlabeled | |
| ] | |
| workflow_dispatch: | |
| inputs: | |
| server-tag: | |
| type: string | |
| required: false | |
| default: "latest" | |
| description: "Server docker image tag" | |
| run-tests: | |
| type: boolean | |
| required: false | |
| default: false | |
| description: Spin up aerospike enterprise server and run tests | |
| crypto-type: | |
| type: string | |
| required: true | |
| server-type: | |
| type: string | |
| required: true | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Build artifacts | |
| uses: ./.github/actions/build | |
| with: | |
| sgKey: ${{ secrets.SG_KEY }} | |
| sign: | |
| needs: build | |
| uses: aerospike/shared-workflows/.github/workflows/reusable_sign-artifacts.yaml@75349c70580720bb98985ce9ab2318325fe36c20 | |
| with: | |
| gh-unsigned-artifacts: AerospikeClient-${{ github.run_number }} | |
| secrets: | |
| gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} | |
| gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }} | |
| gpg-key-pass: ${{ secrets.GPG_PASS }} | |
| es-username: ${{ secrets.ES_USERNAME }} | |
| es-password: ${{ secrets.ES_PASSWORD }} | |
| credential_id: ${{ secrets.CREDENTIAL_ID }} | |
| es-totp_secret: ${{ secrets.ES_TOTP_SECRET }} | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Test | |
| uses: ./.github/actions/test | |
| with: | |
| jfrog-tests-repo-name: database-generic-dev-local | |
| server-tag: ${{ inputs.server-tag || 'latest' }} | |
| server-type: ${{ inputs.server-type || 'aerospike-server-enterprise' }} | |
| oidc-provider: database-gh-aerospike | |
| oidc-audience: database-gh-aerospike | |
| upload: | |
| needs: [sign, test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Upload to JFrog | |
| uses: ./.github/actions/upload-to-jfrog |