mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
name: Test install.sh
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'install.sh'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'pr-*'
|
|
|
|
jobs:
|
|
test-install-script:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
# - windows-latest # disabled for now due to curl error (probably this regression: https://github.com/curl/curl/issues/13958)
|
|
- macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run install.sh on ${{ matrix.os }}
|
|
shell: bash
|
|
env:
|
|
DEBUG: "true"
|
|
# just run install.sh b/c github can throttle itself based on egress limits and gets 503 sometimes
|
|
run: |
|
|
echo "Simulating: curl -s https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_REF_NAME/install.sh | bash"
|
|
./install.sh
|
|
k3d version
|
|
- name: Create cluster
|
|
if: matrix.os == 'ubuntu-latest' # mac and windows Github runners can't use docker
|
|
run: k3d cluster create demo
|
|
|