-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add installation test for OS and arch
- Loading branch information
1 parent
e29ff95
commit ec17a17
Showing
3 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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@v2 | ||
|
||
- 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@master | ||
|
||
# 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/runner/.cloudypad/bin | ||
export CLOUDYPAD_CONTAINER_NO_TTY=true | ||
cloudypad --version |
This file contains 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
This file contains 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