Weekly Download Test #4
This file contains hidden or 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
| name: Weekly Download Test | |
| on: | |
| schedule: | |
| # Run every Sunday at 02:00 UTC | |
| - cron: '0 2 * * 0' | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| download-install-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Test viash download and installation | |
| run: | | |
| echo "Testing viash download from https://dl.viash.io" | |
| # Download viash | |
| curl -fsSL https://dl.viash.io | bash | |
| # Verify installation | |
| if [ -f "./viash" ]; then | |
| echo "✅ viash binary exists locally" | |
| ./viash --version | |
| echo "✅ viash version check successful" | |
| else | |
| echo "❌ viash binary not found in local directory after installation" | |
| exit 1 | |
| fi | |
| # Test basic functionality | |
| echo "Testing basic viash functionality..." | |
| ./viash --help > /dev/null | |
| echo "✅ viash help command works" | |
| - name: Notify download test failure | |
| if: failure() | |
| run: | | |
| curl -X POST \ | |
| -H 'Content-Type: application/json' \ | |
| -d '{ | |
| "text": "🚨 *Viash Download Test Failed*\n\n• **OS**: ${{ matrix.os }}\n• **Issue**: Failed to download/install viash from https://dl.viash.io\n• **Repository**: ${{ github.repository }}\n• **Run**: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Logs>" | |
| }' \ | |
| "${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}" |