-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (41 loc) · 1.53 KB
/
weekly_download_test.yml
File metadata and controls
48 lines (41 loc) · 1.53 KB
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
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 }}"