From 9b2e272c658291bac5712ed0e4ff84b330fa4900 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Wed, 26 Apr 2023 23:33:03 -0500 Subject: [PATCH] test: add nightly `shorebird_cli` e2e installation test (#379) --- .github/workflows/nightly_e2e.yaml | 32 ++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/nightly_e2e.yaml diff --git a/.github/workflows/nightly_e2e.yaml b/.github/workflows/nightly_e2e.yaml new file mode 100644 index 00000000..8812b5ad --- /dev/null +++ b/.github/workflows/nightly_e2e.yaml @@ -0,0 +1,32 @@ +name: Nighty E2E + +on: + schedule: + # At the end of every day + - cron: "0 0 * * *" + +jobs: + verify_cli_installation: + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + + defaults: + run: + shell: bash + + runs-on: ${{ matrix.os }} + + steps: + - name: 📚 Git Checkout + uses: actions/checkout@v3 + + - name: 🐦 Verify Shorebird Installation (${{ matrix.os }}) + run: | + if [[ $(./bin/shorebird --version) =~ "Shorebird Engine • revision" ]]; then + echo '✅ Shorebird CLI is installed!' + else + echo '❌ Shorebird CLI is not installed.' + exit 1 + fi diff --git a/README.md b/README.md index 84854a13..b0c01494 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Discord](https://dcbadge.vercel.app/api/server/9hKJcWGcaB)](https://discord.gg/9hKJcWGcaB) [![ci](https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml/badge.svg)](https://github.com/shorebirdtech/shorebird/actions/workflows/main.yaml) +[![Nighty E2E](https://github.com/shorebirdtech/shorebird/actions/workflows/nightly_e2e.yaml/badge.svg)](https://github.com/shorebirdtech/shorebird/actions/workflows/nightly_e2e.yaml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT) [![License: Apache](https://img.shields.io/badge/license-Apache-orange.svg)](./LICENSE-APACHE)