Skip to content

Nightly rad CLI tests #316

Nightly rad CLI tests

Nightly rad CLI tests #316

# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
---
name: Nightly rad CLI tests
on:
schedule:
# Run every day at 11:47 PM UTC
- cron: 47 23 * * *
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
paths:
- .github/workflows/nightly-rad-CLI-tests.yaml
permissions: {}
jobs:
download:
if: github.repository == 'radius-project/radius'
runs-on: ubuntu-24.04
timeout-minutes: 5
strategy:
matrix:
include:
- os: linux
arch: amd64
file: rad
- os: linux
arch: arm64
file: rad
- os: linux
arch: arm
file: rad
- os: darwin
arch: amd64
file: rad
- os: darwin
arch: arm64
file: rad
- os: windows
arch: amd64
file: rad
ext: .exe
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Test CLI download
run: make test-cli-download OS=${{ matrix.os }} ARCH=${{ matrix.arch }} FILE=${{ matrix.file }} EXT=${{ matrix.ext }}
- name: Create GitHub issue on failure
if: ${{ failure() }}
run: |
gh issue create --title "CLI nightly test failed - ${{ matrix.os }}-${{ matrix.arch }}" --body "Test failed on ${{ github.repository }} for ${{ matrix.os }}-${{ matrix.arch }}. See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details." --label "test-failure" --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }}