test DIY install.sh script #3
Workflow file for this run
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
# build diy image based on debian bullseye and bookworm | |
# test install.sh script as-it | |
name: Test DIY install.sh | |
# only trigger when last commit or PR modify install/** | |
on: | |
# only trigger CI when pull request on following branches | |
pull_request: | |
branches: | |
- 'alpha' | |
paths: | |
- install/** | |
push: | |
# only trigger CI when push on following branches | |
branches: | |
- 'feat/diy_test_install' | |
paths: | |
- install/** | |
# this is to manually trigger the worklow | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Reason' | |
default: 'Manual launch' | |
env: | |
GITHUB_REPOSITORY: jeedom/core | |
jobs: | |
InstallationDIY: | |
# This step build the same image on different runners / platforms | |
strategy: | |
# continue all jobs even if some fail | |
fail-fast: false | |
matrix: | |
debian: [ bullseye] # [bullseye, bookworm ] | |
targetRunner: [ ubuntu-latest] # [ ubuntu-latest, ARM, ARM64] | |
database: [ 1] # [1, 0] | |
runs-on: ${{ matrix.targetRunner }} | |
steps: | |
- name: Check Out Repo | |
# Check out the repo, using current branch | |
# https://github.com/marketplace/actions/checkout | |
uses: actions/checkout@v4 | |
- name: install jeedom:${{ matrix.debian }} | |
# run current installation | |
run: | | |
echo "Running DIY install of ${GITHUB_REPOSITORY} / ${GITHUB_REF_NAME}" >> ${GITHUB_STEP_SUMMARY} | |
grep -E '^(VERSION|PRETTY_NAME)=' /etc/os-release >> ${GITHUB_STEP_SUMMARY} | |
chmod +x install/install.sh | |
sudo install/install.sh -v alpha -d ${{ matrix.database }} | |
composer --version >> ${GITHUB_STEP_SUMMARY} | |
node --version >> ${GITHUB_STEP_SUMMARY} |