From 0bc13d4ef05d06dee4c185b83c85abbbb4e914b3 Mon Sep 17 00:00:00 2001 From: UnicornChance Date: Wed, 28 Aug 2024 15:58:01 -0600 Subject: [PATCH 1/2] chore: udpate docs --- src/keycloak/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keycloak/README.md b/src/keycloak/README.md index a79d9947f..09749b26b 100644 --- a/src/keycloak/README.md +++ b/src/keycloak/README.md @@ -1,5 +1,7 @@ ## Keycloak +testing + [Keycloak](https://www.keycloak.org/) is an open source IdAM stack written in Java. This Keycloak source package provides an implementation of Keycloak and is intended to be used in conjunction with the [UDS Identity Config](https://github.com/defenseunicorns/uds-identity-config) image and the [UDS Operator](../pepr/operator/README.md). ### Changes from the DoD Platform One Big Bang package From 8046b9e3393eeaceef7c42ce165e7795ac448429 Mon Sep 17 00:00:00 2001 From: UnicornChance Date: Wed, 28 Aug 2024 16:09:50 -0600 Subject: [PATCH 2/2] fix: ci --- .github/workflows/commitlint.yaml | 17 +++++ .github/workflows/docs-shim.yaml | 75 +++---------------- .../workflows/pull-request-conditionals.yaml | 36 --------- .github/workflows/test-shim.yaml | 42 +++++++++++ 4 files changed, 71 insertions(+), 99 deletions(-) create mode 100644 .github/workflows/test-shim.yaml diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 29445f7cd..082a362b4 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -31,3 +31,20 @@ jobs: env: pull_request_title: ${{ github.event.pull_request.title }} run: echo "$pull_request_title" | npx commitlint + + lint-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + - name: Use Node.js latest + uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version: 20 + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + - name: Install UDS CLI + shell: bash + # renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver + run: brew install defenseunicorns/tap/uds@0.14.1 + - name: Run Formatting Checks + run: uds run lint-check --no-progress \ No newline at end of file diff --git a/.github/workflows/docs-shim.yaml b/.github/workflows/docs-shim.yaml index 4a718b097..bac8a6bf8 100644 --- a/.github/workflows/docs-shim.yaml +++ b/.github/workflows/docs-shim.yaml @@ -19,67 +19,16 @@ on: - LICENSE jobs: - check-only-docs-changes: - runs-on: ubuntu-latest - outputs: - docs_only: ${{ steps.set_output.outputs.docs_only }} - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Check for non-docs changes - id: docs_check - uses: ./.github/actions/docs-only - with: - base_ref: ${{ github.base_ref }} - - - name: Set outputs - id: set_output - run: echo "docs_only=${{ steps.docs_check.outputs.docs_only }}" >> $GITHUB_OUTPUT - - lint-check: - needs: check-only-docs-changes - if: ${{ needs.check-only-docs-changes.outputs.docs_only == 'true' }} - name: Lint Check(Simulated) - runs-on: ubuntu-latest - steps: - - name: Lint Check - run: echo "Simulating lint-check job - Success!" - - check-paths: - needs: check-only-docs-changes - if: ${{ needs.check-only-docs-changes.outputs.docs_only == 'true' }} - name: Check Paths(Simulated) - runs-on: ubuntu-latest - steps: - - name: Check Paths - run: echo "Simulating check-paths job - Success!" - run-package-test: - needs: check-only-docs-changes - if: ${{ needs.check-only-docs-changes.outputs.docs_only == 'true' }} - name: Package Test(Simulated) - runs-on: ubuntu-latest - steps: - - name: Run Package Test - run: echo "Simulating run-package-test job - Success!" - - evaluate-package-compliance: - needs: check-only-docs-changes - if: ${{ needs.check-only-docs-changes.outputs.docs_only == 'true' }} - name: Compliance Test(Simulated) - runs-on: ubuntu-latest - steps: - - name: Evaluate Package Compliance - run: echo "Simulating evaluate-package-compliance job - Success!" - - # slim-dev-test.yaml - test: - needs: check-only-docs-changes - if: ${{ needs.check-only-docs-changes.outputs.docs_only == 'true' }} - name: Slim Dev Test(Simulated) - runs-on: ubuntu-latest - steps: - - name: Shim for Slim Dev Test - run: | - echo "Documentation-only change detected; marking test successful." + name: Schedule + strategy: + matrix: + package: [all] + flavor: [upstream, registry1, unicorn] + test_type: [install,upgrade] + uses: ./.github/workflows/test-shim.yaml + with: + package: ${{ matrix.package }} + flavor: ${{ matrix.flavor }} + test_type: ${{ matrix.test_type }} + secrets: inherit # Inherits all secrets from the parent workflow. \ No newline at end of file diff --git a/.github/workflows/pull-request-conditionals.yaml b/.github/workflows/pull-request-conditionals.yaml index b2e5c85da..3ea7fb611 100644 --- a/.github/workflows/pull-request-conditionals.yaml +++ b/.github/workflows/pull-request-conditionals.yaml @@ -38,26 +38,8 @@ concurrency: cancel-in-progress: true jobs: - lint-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - - name: Use Node.js latest - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 - with: - node-version: 20 - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@master - - name: Install UDS CLI - shell: bash - # renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver - run: brew install defenseunicorns/tap/uds@0.14.1 - - name: Run Formatting Checks - run: uds run lint-check --no-progress - # This job checks if there are changes in specific paths source packages. check-paths: - needs: lint-check runs-on: ubuntu-latest name: Select Jobs outputs: @@ -75,24 +57,6 @@ jobs: filters: .github/filters.yaml predicate-quantifier: every - # check-only-docs-changes: - # runs-on: ubuntu-latest - # outputs: - # docs_only: ${{ steps.set_output.outputs.docs_only }} - # steps: - # - name: Checkout code - # uses: actions/checkout@v3 - - # - name: Check for non-docs changes - # id: docs_check - # uses: ./.github/actions/docs-only - # with: - # base_ref: ${{ github.base_ref }} - - # - name: Set outputs - # id: set_output - # run: echo "docs_only=${{ steps.docs_check.outputs.docs_only }}" >> $GITHUB_OUTPUT - # This job triggers a separate workflow for each changed source package, if any. run-package-test: needs: check-paths diff --git a/.github/workflows/test-shim.yaml b/.github/workflows/test-shim.yaml new file mode 100644 index 000000000..3fa5390cc --- /dev/null +++ b/.github/workflows/test-shim.yaml @@ -0,0 +1,42 @@ +name: Test Shim + +on: + # Manual trigger + workflow_dispatch: + inputs: + package: + type: string + description: "The name of the source package to test" + required: true + flavor: + type: string + description: "Flavor of the source package to test" + required: true + test_type: + type: string + description: "The type of test to perform" + required: true + # Triggered by pull-request-conditionals.yaml + workflow_call: + inputs: + package: + type: string + description: "The name of the source package to test" + required: true + flavor: + type: string + description: "Flavor of the source package to test" + required: true + test_type: + type: string + description: "The type of test to perform" + required: true + +jobs: + test: + runs-on: 'ubuntu-latest' + name: Test + steps: + - name: Skipped + run: | + echo skipped \ No newline at end of file