-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lock-down-egress
- Loading branch information
Showing
36 changed files
with
481 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: lint-check | ||
description: "Check Project for Linting Errors" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- 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 | ||
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver | ||
run: brew install defenseunicorns/tap/[email protected] | ||
shell: bash | ||
- name: Run Formatting Checks | ||
run: uds run lint-check --no-progress | ||
shell: bash |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,13 +33,13 @@ runs: | |
- name: Install UDS CLI | ||
shell: bash | ||
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver | ||
run: brew install defenseunicorns/tap/[email protected].1 | ||
run: brew install defenseunicorns/tap/[email protected].2 | ||
|
||
- name: Install Lula | ||
uses: defenseunicorns/lula-action/setup@badad8c4b1570095f57e66ffd62664847698a3b9 # v0.0.1 | ||
with: | ||
# renovate: datasource=github-tags depName=defenseunicorns/lula versioning=semver-coerced | ||
version: v0.5.1 | ||
version: v0.6.0 | ||
|
||
- name: Iron Bank Login | ||
if: ${{ inputs.registry1Username != '' }} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI Docs | ||
|
||
on: | ||
pull_request: | ||
types: [milestoned, opened, reopened, synchronize] | ||
paths: | ||
- "**.md" | ||
- "**.jpg" | ||
- "**.png" | ||
- "**.gif" | ||
- "**.svg" | ||
- docs/** | ||
- .vscode/** | ||
- .gitignore | ||
- renovate.json | ||
- .release-please-config.json | ||
- release-please-config.json | ||
- CODEOWNERS | ||
- LICENSE | ||
|
||
jobs: | ||
lint-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: lint-check | ||
uses: ./.github/actions/lint-check | ||
|
||
run-package-test: | ||
needs: lint-check | ||
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. |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,20 @@ on: | |
pull_request: | ||
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). | ||
types: [milestoned, opened, reopened, synchronize] | ||
paths-ignore: | ||
- "**.md" | ||
- "**.jpg" | ||
- "**.png" | ||
- "**.gif" | ||
- "**.svg" | ||
- docs/** | ||
- .vscode/** | ||
- .gitignore | ||
- renovate.json | ||
- .release-please-config.json | ||
- release-please-config.json | ||
- CODEOWNERS | ||
- LICENSE | ||
|
||
# Permissions for the GITHUB_TOKEN used by the workflow. | ||
permissions: | ||
|
@@ -27,19 +41,10 @@ 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/[email protected] | ||
- name: Run Formatting Checks | ||
run: uds run lint-check --no-progress | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: lint-check | ||
uses: ./.github/actions/lint-check | ||
|
||
# This job checks if there are changes in specific paths source packages. | ||
check-paths: | ||
|
@@ -59,6 +64,7 @@ jobs: | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
with: | ||
filters: .github/filters.yaml | ||
predicate-quantifier: every | ||
|
||
# This job triggers a separate workflow for each changed source package, if any. | ||
run-package-test: | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains 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
This file contains 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
Oops, something went wrong.