feat: add picasso commands in simple way #16
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
name: Integration Tests | |
on: [pull_request] | |
jobs: | |
tutor-integration-test: | |
name: Integration with Tutor | |
strategy: | |
matrix: | |
# tutor_version: ["Redwood", "Quince", "Palm", "Olive"] | |
tutor_version: ["<17.0.0"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare Tutor & launch | |
run: | | |
pip install "tutor${{ matrix.tutor_version }}" | |
pip install -e . | |
TUTOR_ROOT="$(pwd)" tutor --version | |
TUTOR_ROOT="$(pwd)" tutor config save | |
- name: Set up SSH | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
- name: Run integration tests | |
run: | | |
TUTOR_ROOT="$(pwd)" tutor plugins enable picasso | |
TUTOR_ROOT="$(pwd)" tutor picasso -h | |
echo "PICASSO_MANAGE_DPKG:" | tee -a ./config.yml | |
echo " name: eox-manage" | tee -a ./config.yml | |
echo " repo: [email protected]:eduNEXT/eox-manage.git" | tee -a ./config.yml | |
echo " version: v5.2.0" | tee -a ./config.yml | |
echo "PICASSO_THEMES:" | tee -a ./config.yml | |
echo "- name: endx-saas-themes" | tee -a ./config.yml | |
echo " repo: [email protected]:eduNEXT/ednx-saas-themes.git" | tee -a ./config.yml | |
echo " version: master" | tee -a ./config.yml | |
echo "PICASSO_EXTRA_COMMANDS:" | tee -a ./config.yml | |
echo "- tutor plugins update" | tee -a ./config.yml | |
echo "- tutor plugins index add https://raw.githubusercontent.com/eduNEXT/tutor-plugin-indexes/main/" | tee -a ./config.yml | |
echo "- tutor plugins install mfe mfe_extensions aspects" | tee -a ./config.yml | |
echo "- tutor plugins enable mfe mfe_extensions aspects" | tee -a ./config.yml | |
echo "- tutor config save" | tee -a ./config.yml | |
TUTOR_ROOT="$(pwd)" tutor config save | |
TUTOR_ROOT="$(pwd)" tutor picasso enable-themes | |
TUTOR_ROOT="$(pwd)" tutor picasso enable-private-packages | |
TUTOR_ROOT="$(pwd)" tutor picasso run-extra-commands |