mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-26 18:13:40 +01:00
18098e7a7d
detect OS package manager If a supported package manager is not available, use binary installation Check if desktop environment is available Skip installing the UI client if SKIP_UI_APP is set to true added tests for Ubuntu and macOS tests
37 lines
790 B
YAML
37 lines
790 B
YAML
name: Test installation Linux
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "release_files/install.sh"
|
|
|
|
jobs:
|
|
install-cli-only:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
check_bin_install: [true, false]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Rename apt package
|
|
if: ${{ matrix.check_bin_install }}
|
|
run: |
|
|
sudo mv /usr/bin/apt /usr/bin/apt.bak
|
|
sudo mv /usr/bin/apt-get /usr/bin/apt-get.bak
|
|
|
|
- name: Run install script
|
|
run: |
|
|
sh ./release_files/install.sh
|
|
|
|
- name: Run tests
|
|
run: |
|
|
if ! command -v netbird &> /dev/null; then
|
|
echo "Error: netbird is not installed"
|
|
exit 1
|
|
fi
|