UDS Core Smoke Test #259
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
# Copyright 2024 Defense Unicorns | |
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | |
name: UDS Core Smoke Test | |
on: | |
schedule: | |
- cron: '0 7 * * *' ## Every day at 0700 UTC | |
workflow_dispatch: | |
permissions: | |
contents: read | |
# Abort prior jobs in the same workflow / PR | |
concurrency: | |
group: uds-core-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
uds-core-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
type: [with-cluster, without-cluster] | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
fetch-depth: 0 | |
- name: Setup golang | |
uses: ./.github/actions/golang | |
- name: Install UDS CLI | |
uses: ./.github/actions/install-uds-cli | |
- name: Build UDS-CLI binary | |
run: uds run build-cli-linux-amd | |
- name: Make UDS-CLI executable | |
run: | | |
chmod +x build/uds | |
- name: Setup K3d | |
uses: ./.github/actions/k3d | |
with: | |
create-cluster: "${{ matrix.type == 'with-cluster' && 'true' || 'false'}}" | |
- name: Run UDS Core smoke test | |
run: build/uds run test:ci-uds-core-smoke-test | |
shell: bash |