-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to use latest uds-common actions
- Loading branch information
Showing
4 changed files
with
62 additions
and
72 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
This file was deleted.
Oops, something went wrong.
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,56 @@ | ||
name: Test | ||
|
||
# This workflow is triggered on pull requests to the main branch. | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/**" | ||
- "bundle/**" | ||
- "values/**" | ||
- "tasks/**" | ||
- "src/**" | ||
- "chart/**" | ||
- "tasks.yaml" | ||
- "zarf.yaml" | ||
|
||
# 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] | ||
|
||
# Abort prior jobs in the same workflow / PR | ||
concurrency: | ||
group: test-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run-test: | ||
name: Create and Deploy Flavor ${{ matrix.flavor }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
flavor: [upstream, registry1] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Environment setup | ||
uses: defenseunicorns/uds-common/.github/actions/setup@442bae718050ea9a47254851a45632aabeb13b17 | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Test | ||
uses: defenseunicorns/uds-common/.github/actions/test@442bae718050ea9a47254851a45632aabeb13b17 | ||
with: | ||
flavor: ${{ matrix.flavor }} | ||
|
||
- name: Save logs | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/save-logs@442bae718050ea9a47254851a45632aabeb13b17 | ||
with: | ||
suffix: ${{ matrix.flavor }}-${{ github.run_id }}-${{ github.run_attempt }} | ||
|