From 24e19afbd4124999b106ac340ceb51ab6987e974 Mon Sep 17 00:00:00 2001 From: Nasser Anssari Date: Tue, 12 Nov 2024 18:00:35 +0300 Subject: [PATCH] chore: remove ununsed GH actions (#824) --- .github/workflows/generator-test-sdk.yaml | 71 ----------------------- .github/workflows/pr-check-tests.yaml | 12 ---- .github/workflows/run-tests.yaml | 47 --------------- 3 files changed, 130 deletions(-) delete mode 100644 .github/workflows/generator-test-sdk.yaml delete mode 100644 .github/workflows/pr-check-tests.yaml delete mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/generator-test-sdk.yaml b/.github/workflows/generator-test-sdk.yaml deleted file mode 100644 index d1c5c91cd..000000000 --- a/.github/workflows/generator-test-sdk.yaml +++ /dev/null @@ -1,71 +0,0 @@ -name: Generate Test SDK -on: - workflow_call: - inputs: - version: - description: 'SDK version to generate test jar for' - required: true - type: string - namespace: - description: 'SDK to generate test jar for' - required: true - type: string - product_repo: - description: 'Product repository' - required: true - type: string - transformations: - description: 'Specs transformations' - required: true - type: string - outputs: - artifactId: - value: ${{ jobs.sdk-metadata.outputs.artifactId }} - groupId: - value: ${{ jobs.sdk-metadata.outputs.groupId }} - version: - value: ${{ jobs.sdk-metadata.outputs.version }} - -jobs: - transform-specs: - uses: ./.github/workflows/selfserve-transform-specs.yaml - with: - transformations: ${{ inputs.transformations }} - repository: ${{ inputs.product_repo }} - ref: 'main' - - generate-sdk: - needs: [ transform-specs ] - uses: ./.github/workflows/selfserve-generate-sdk.yaml - with: - name: ${{ inputs.namespace }} - version: ${{ inputs.version }} - sdk_repo_ref: "${{ github.head_ref || github.ref_name }}" - repository: ${{ inputs.product_repo }} - ref: 'main' - - sdk-metadata: - runs-on: ubuntu-latest - needs: [ generate-sdk ] - outputs: - artifactId: ${{ steps.parse-metadata.outputs.artifactId }} - groupId: ${{ steps.parse-metadata.outputs.groupId }} - version: ${{ steps.parse-metadata.outputs.version }} - steps: - - uses: actions/download-artifact@v4 - with: - name: jar - path: jar - - id: parse-metadata - working-directory: jar/maven-archiver - shell: python -u {0} - run: | - import os - - metadata: dict = dict() - with open("pom.properties") as properties: - metadata = dict(line.strip().split('=') for line in filter(bool, properties.readlines())) - - with open(os.getenv("GITHUB_OUTPUT"), "a") as GITHUB_OUTPUT: - for key, value in metadata.items(): - print(f"{key}={value}", file=GITHUB_OUTPUT) diff --git a/.github/workflows/pr-check-tests.yaml b/.github/workflows/pr-check-tests.yaml deleted file mode 100644 index 55e643f7c..000000000 --- a/.github/workflows/pr-check-tests.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: PR Check Tests Run -on: push - -jobs: - run-rapid-tests: - uses: ./.github/workflows/run-tests.yaml - with: - sdk_version: 1.0.${{ github.run_id }} - sdk_namespace: 'rapid' - transformations: '-th -te /v3 --operationIdsToTags' - product_repo: 'ExpediaGroup/rapid-java-sdk' - secrets: inherit diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml deleted file mode 100644 index 29a87808c..000000000 --- a/.github/workflows/run-tests.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Run Tests -on: - workflow_call: - inputs: - sdk_version: - description: 'Run tests based on SDK' - required: false - type: string - default: 'LATEST' - sdk_namespace: - description: 'SDK to test' - required: true - type: string - default: 'rapid' - transformations: - description: 'Specs transformations' - required: true - type: string - product_repo: - description: 'Product repository' - required: true - type: string - -jobs: - generate-test-sdk: - uses: ./.github/workflows/generator-test-sdk.yaml - secrets: inherit - with: - version: ${{ inputs.sdk_version }} - namespace: ${{ inputs.sdk_namespace }} - product_repo: ${{ inputs.product_repo }} - transformations: ${{ inputs.transformations }} - - run-rapid-examples: - strategy: - matrix: - jdk: [8, 11, 17, 21] - if: inputs.sdk_namespace == 'rapid' - needs: [ generate-test-sdk ] - uses: "ExpediaGroup/rapid-java-sdk/.github/workflows/run-examples.yaml@main" - with: - sdk_version: ${{ needs.generate-test-sdk.outputs.version }} - jdk: ${{ matrix.jdk }} - source: 'specs' - secrets: - KEY: ${{ secrets.RAPID_KEY }} - SECRET: ${{ secrets.RAPID_SECRET }}