-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (42 loc) · 1.25 KB
/
nightly-uds-core.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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