-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (43 loc) · 1.28 KB
/
test-install.yml
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
name: Test installation script
on:
push:
branches:
- "*"
pull_request:
branches:
- master
jobs:
test-install:
name: Test install.sh
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os:
# - ubuntu-24.04
# - ubuntu-22.04
# - ubuntu-20.04
# - macos-14 # Docker install suported yet
- macos-13
- macos-12
# arch:
# - x64
# - arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: (MacOS) Setup Docker
if: startsWith(matrix.os, 'macos')
# uses: docker-practice/actions-setup-docker@master
# timeout-minutes: 12
uses: douglascamata/setup-docker-macos-action@main
# uses: crazy-max/ghaction-setup-docker@v3
# Test the install script and cloudypad.sh for current commit
- name: Run install script
run: |
curl -fsSL https://raw.githubusercontent.com/PierreBeucher/cloudypad/${{ github.sha }}/install.sh | CLOUDYPAD_VERSION=${{ github.sha }} sh
- name: Check version
run: |
export PATH=$PATH:$HOME/.cloudypad/bin
export CLOUDYPAD_CONTAINER_NO_TTY=true
export CLOUDYPAD_CLI_LAUNCHER_DEBUG=true
cloudypad --version