2022-04-25 20:11:57 +08:00
|
|
|
name: 'Automated tests'
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-04-26 07:20:42 +08:00
|
|
|
- 'develop'
|
|
|
|
- 'v2.[5-9].x-release'
|
|
|
|
- 'v[3-9].*.x-release'
|
2023-03-29 21:36:18 +08:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- '**/*.md'
|
2023-03-20 03:46:20 +08:00
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2023-03-09 04:54:36 +08:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- '**/*.md'
|
2022-07-22 03:50:18 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-04-25 20:11:57 +08:00
|
|
|
jobs:
|
2023-08-02 19:55:18 +08:00
|
|
|
build-bbb-apps-akka:
|
2022-04-25 20:11:57 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2022-12-01 17:14:51 +08:00
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 22:43:07 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_AKKA_APPS_KEY=$(git log -1 --format=%H -- akka-bbb-apps)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_COMMON_MSG_KEY=$(git log -1 --format=%H -- bbb-common-message)" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 22:43:07 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-apps-akka-${{ env.CACHE_AKKA_APPS_KEY }}-${{ env.CACHE_COMMON_MSG_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 22:43:07 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 22:43:07 +08:00
|
|
|
./build/setup.sh bbb-apps-akka
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-apps-akka.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-bbb-config:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-03 20:15:53 +08:00
|
|
|
- run: |
|
|
|
|
./build/get_external_dependencies.sh
|
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
|
|
|
./build/setup.sh bbb-config
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-config.tar
|
2023-08-03 20:15:53 +08:00
|
|
|
path: artifacts.tar
|
2023-08-03 04:23:44 +08:00
|
|
|
build-bbb-export-annotations:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-03 20:15:53 +08:00
|
|
|
- run: |
|
|
|
|
./build/get_external_dependencies.sh
|
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
|
|
|
./build/setup.sh bbb-export-annotations
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-03 04:23:44 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-export-annotations.tar
|
2023-08-03 20:15:53 +08:00
|
|
|
path: artifacts.tar
|
2023-08-03 04:23:44 +08:00
|
|
|
build-bbb-learning-dashboard:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-03 05:16:43 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_LEARNING_DASHBOARD_KEY=$(git log -1 --format=%H -- bbb-learning-dashboard)" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-03 05:16:43 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-learning-dashboard-${{ env.CACHE_LEARNING_DASHBOARD_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-03 05:16:43 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-03 05:16:43 +08:00
|
|
|
./build/setup.sh bbb-learning-dashboard
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-03 04:23:44 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-learning-dashboard.tar
|
2023-08-03 05:16:43 +08:00
|
|
|
path: artifacts.tar
|
2023-08-03 05:03:47 +08:00
|
|
|
build-bbb-playback-record:
|
2023-08-03 04:51:48 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: ./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
- run: echo "FORCE_GIT_REV=0" >> $GITHUB_ENV
|
|
|
|
- run: echo "FORCE_COMMIT_DATE=0" >> $GITHUB_ENV
|
2023-08-03 05:03:47 +08:00
|
|
|
- run: ./build/setup.sh bbb-playback
|
|
|
|
- run: ./build/setup.sh bbb-playback-notes
|
|
|
|
- run: ./build/setup.sh bbb-playback-podcast
|
|
|
|
- run: ./build/setup.sh bbb-playback-presentation
|
|
|
|
- run: ./build/setup.sh bbb-playback-screenshare
|
|
|
|
- run: ./build/setup.sh bbb-playback-video
|
|
|
|
- run: ./build/setup.sh bbb-record-core
|
2023-08-03 04:51:48 +08:00
|
|
|
- run: tar cvf artifacts.tar artifacts/
|
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-08-03 05:05:02 +08:00
|
|
|
name: artifacts_bbb-playback-record.tar
|
2023-08-03 04:51:48 +08:00
|
|
|
path: |
|
|
|
|
artifacts.tar
|
2023-08-02 19:55:18 +08:00
|
|
|
build-bbb-etherpad:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 22:43:07 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_ETHERPAD_VERSION_KEY=$(git log -1 --format=%H -- bbb-etherpad.placeholder.sh)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_ETHERPAD_BUILD_KEY=$(git log -1 --format=%H -- build/packages-template/bbb-etherpad)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_URL1_KEY=$(curl -s https://api.github.com/repos/mconf/ep_pad_ttl/commits | md5sum | awk '{ print $1 }')" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_URL2_KEY=$(curl -s https://api.github.com/repos/alangecker/bbb-etherpad-plugin/commits | md5sum | awk '{ print $1 }')" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_URL3_KEY=$(curl -s https://api.github.com/repos/mconf/ep_redis_publisher/commits | md5sum | awk '{ print $1 }')" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_URL4_KEY=$(curl -s https://api.github.com/repos/alangecker/bbb-etherpad-skin/commits | md5sum | awk '{ print $1 }')" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 22:43:07 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-etherpad-${{ env.CACHE_ETHERPAD_VERSION_KEY }}-${{ env.CACHE_ETHERPAD_BUILD_KEY }}-${{ env.CACHE_URL1_KEY }}-${{ env.CACHE_URL2_KEY }}-${{ env.CACHE_URL3_KEY }}-${{ env.CACHE_URL4_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 22:43:07 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 22:43:07 +08:00
|
|
|
./build/setup.sh bbb-etherpad
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-etherpad.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-bbb-bbb-web:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 22:43:07 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_BBB_WEB_KEY=$(git log -1 --format=%H -- bigbluebutton-web)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_COMMON_MSG_KEY=$(git log -1 --format=%H -- bbb-common-message)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_COMMON_WEB_KEY=$(git log -1 --format=%H -- bbb-common-web)" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 22:43:07 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-web-${{ env.CACHE_BBB_WEB_KEY }}-${{ env.CACHE_COMMON_MSG_KEY }}-${{ env.CACHE_COMMON_WEB_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 22:43:07 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 22:43:07 +08:00
|
|
|
./build/setup.sh bbb-web
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-web.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-bbb-fsesl-akka:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 22:43:07 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_AKKA_FSESL_KEY=$(git log -1 --format=%H -- akka-bbb-fsesl)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_COMMON_MSG_KEY=$(git log -1 --format=%H -- bbb-common-message)" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 22:43:07 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-fsesl-akka-${{ env.CACHE_AKKA_FSESL_KEY }}-${{ env.CACHE_COMMON_MSG_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 22:43:07 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 22:43:07 +08:00
|
|
|
./build/setup.sh bbb-fsesl-akka
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-fsesl-akka.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-bbb-html5:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 21:16:11 +08:00
|
|
|
with:
|
2023-08-02 22:07:37 +08:00
|
|
|
fetch-depth: 0 # Fetch all history
|
|
|
|
- run: echo "CACHE_KEY=$(git log -1 --format=%H -- bigbluebutton-html5)" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 22:43:07 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
2023-08-02 20:17:50 +08:00
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-html5-${{ env.CACHE_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 22:43:07 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
2023-08-02 20:17:50 +08:00
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 20:17:50 +08:00
|
|
|
./build/setup.sh bbb-html5-nodejs
|
|
|
|
./build/setup.sh bbb-html5
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-html5.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-bbb-freeswitch:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-02 21:16:11 +08:00
|
|
|
with:
|
2023-08-02 22:07:37 +08:00
|
|
|
fetch-depth: 0 # Fetch all history
|
2023-08-02 20:50:25 +08:00
|
|
|
- run: echo "CACHE_FREESWITCH_KEY=$(git log -1 --format=%H -- build/packages-template/bbb-freeswitch-core)" >> $GITHUB_ENV
|
|
|
|
- run: echo "CACHE_FREESWITCH_SOUNDS_KEY=$(git log -1 --format=%H -- build/packages-template/bbb-freeswitch-sounds)" >> $GITHUB_ENV
|
2023-08-02 21:06:43 +08:00
|
|
|
- run: echo "CACHE_SOUNDS_KEY=$(curl -Is http://bigbluebutton.org/downloads/sounds.tar.gz | grep "Last-Modified" | md5sum | awk '{ print $1 }')" >> $GITHUB_ENV
|
2023-08-03 20:19:59 +08:00
|
|
|
- run: echo "CACHE_BBB_RELEASE_KEY=$(git log -1 --format=%H -- bigbluebutton-config/bigbluebutton-release)" >> $GITHUB_ENV
|
2023-08-02 20:50:25 +08:00
|
|
|
- name: Handle cache
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: artifacts.tar
|
2023-08-03 20:19:59 +08:00
|
|
|
key: ${{ runner.os }}-bbb-freeswitch-${{ env.CACHE_FREESWITCH_KEY }}-${{ env.CACHE_FREESWITCH_SOUNDS_KEY }}-${{ env.CACHE_SOUNDS_KEY }}-${{ env.CACHE_BBB_RELEASE_KEY }}
|
2023-08-02 20:50:25 +08:00
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
run: |
|
|
|
|
./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
FORCE_GIT_REV="0"
|
|
|
|
FORCE_COMMIT_DATE="0"
|
2023-08-02 20:50:25 +08:00
|
|
|
./build/setup.sh bbb-freeswitch-core
|
|
|
|
./build/setup.sh bbb-freeswitch-sounds
|
|
|
|
tar cvf artifacts.tar artifacts/
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-freeswitch.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
build-others:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: ./build/get_external_dependencies.sh
|
2023-08-03 20:15:53 +08:00
|
|
|
- run: echo "FORCE_GIT_REV=0" >> $GITHUB_ENV
|
|
|
|
- run: echo "FORCE_COMMIT_DATE=0" >> $GITHUB_ENV
|
2022-04-25 20:11:57 +08:00
|
|
|
- run: ./build/setup.sh bbb-mkclean
|
|
|
|
- run: ./build/setup.sh bbb-pads
|
2023-08-03 05:03:47 +08:00
|
|
|
- run: ./build/setup.sh bbb-libreoffice-docker
|
2022-04-25 20:11:57 +08:00
|
|
|
- run: ./build/setup.sh bbb-webrtc-sfu
|
2023-04-19 04:02:26 +08:00
|
|
|
- run: ./build/setup.sh bbb-webrtc-recorder
|
2023-05-19 23:38:55 +08:00
|
|
|
- run: ./build/setup.sh bbb-transcription-controller
|
2022-04-25 20:11:57 +08:00
|
|
|
- run: ./build/setup.sh bigbluebutton
|
|
|
|
- run: tar cvf artifacts.tar artifacts/
|
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts.tar
|
|
|
|
path: |
|
|
|
|
artifacts.tar
|
|
|
|
# - name: Fake package build
|
|
|
|
# run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
# sudo -i <<EOF
|
|
|
|
# set -e
|
2022-04-25 20:11:57 +08:00
|
|
|
# echo "Faking a package build (to speed up installation test)"
|
|
|
|
# cd /
|
2023-08-02 01:51:21 +08:00
|
|
|
# wget -nv "http://ci.bbb.imdt.dev/artifacts.tar"
|
2022-04-25 20:11:57 +08:00
|
|
|
# tar xf artifacts.tar
|
2023-08-02 01:51:21 +08:00
|
|
|
# mv artifacts /home/runner/work/bigbluebutton/bigbluebutton/artifacts/
|
|
|
|
# EOF
|
2023-08-02 19:55:18 +08:00
|
|
|
install-and-run-tests:
|
2023-08-03 05:05:02 +08:00
|
|
|
needs: [build-bbb-apps-akka, build-bbb-config, build-bbb-export-annotations, build-bbb-learning-dashboard, build-bbb-playback-record, build-bbb-etherpad, build-bbb-bbb-web, build-bbb-fsesl-akka, build-bbb-html5, build-bbb-freeswitch, build-others]
|
2023-08-02 19:55:18 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: ./build/get_external_dependencies.sh
|
|
|
|
- name: Download artifacts_bbb-apps-akka
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-apps-akka.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-config
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-config.tar
|
|
|
|
- run: tar xf artifacts.tar
|
2023-08-03 04:41:53 +08:00
|
|
|
- name: Download artifacts_bbb-export-annotations
|
2023-08-03 04:23:44 +08:00
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
2023-08-03 04:41:53 +08:00
|
|
|
name: artifacts_bbb-export-annotations.tar
|
2023-08-03 04:23:44 +08:00
|
|
|
- run: tar xf artifacts.tar
|
2023-08-03 04:41:53 +08:00
|
|
|
- name: Download artifacts_bbb-learning-dashboard
|
2023-08-03 04:23:44 +08:00
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
2023-08-03 04:41:53 +08:00
|
|
|
name: artifacts_bbb-learning-dashboard.tar
|
2023-08-03 04:23:44 +08:00
|
|
|
- run: tar xf artifacts.tar
|
2023-08-03 05:05:02 +08:00
|
|
|
- name: Download artifacts_bbb-playback-record
|
2023-08-03 04:51:48 +08:00
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
2023-08-03 05:05:02 +08:00
|
|
|
name: artifacts_bbb-playback-record.tar
|
2023-08-03 04:51:48 +08:00
|
|
|
- run: tar xf artifacts.tar
|
2023-08-02 19:55:18 +08:00
|
|
|
- name: Download artifacts_bbb-etherpad
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-etherpad.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-freeswitch
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-freeswitch.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-web
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-web.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-fsesl-akka
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-fsesl-akka.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-html5
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-html5.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Extracting files .tar
|
|
|
|
run: |
|
|
|
|
set -e
|
|
|
|
pwd
|
2023-08-03 09:09:51 +08:00
|
|
|
echo "----ls artifacts/----"
|
|
|
|
ls artifacts/
|
|
|
|
COMMIT_DATE="$(git log -n1 --pretty='format:%cd' --date=format:'%Y%m%dT%H%M%S')"
|
2023-08-03 09:23:44 +08:00
|
|
|
VERSION_NUMBER="$(cat bigbluebutton-config/bigbluebutton-release | cut -d '=' -f2 | cut -d "-" -f1)"
|
|
|
|
VERSION_ADDON="$(cat bigbluebutton-config/bigbluebutton-release | cut -d '=' -f2 | cut -d "-" -f2)"
|
2023-08-03 09:09:51 +08:00
|
|
|
GIT_REV=$(git rev-parse HEAD)
|
|
|
|
GIT_REV="local-build-${GIT_REV:0:10}"
|
|
|
|
VERSION="${VERSION_NUMBER}~${VERSION_ADDON}+${COMMIT_DATE}-git.${GIT_REV}"
|
2023-08-03 09:23:44 +08:00
|
|
|
echo "COMMIT_DATE: $COMMIT_DATE"
|
|
|
|
echo "VERSION_NUMBER: $VERSION_NUMBER"
|
|
|
|
echo "VERSION_ADDON: $VERSION_ADDON"
|
|
|
|
echo "GIT_REV: $GIT_REV"
|
2023-08-03 09:09:51 +08:00
|
|
|
echo "VERSION: $VERSION"
|
2023-08-02 19:55:18 +08:00
|
|
|
echo "Done"
|
2023-08-03 20:22:37 +08:00
|
|
|
# mv artifacts/bbb-apps-akka_2* artifacts/bbb-apps-akka_2:${VERSION}_all.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-fsesl-akka_2* artifacts/bbb-fsesl-akka_2:${VERSION}_all.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-etherpad* artifacts/bbb-etherpad_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-freeswitch-core* artifacts/bbb-freeswitch-core_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-freeswitch-sounds* artifacts/bbb-freeswitch-sounds_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-html5-nodejs* artifacts/bbb-html5-nodejs_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-html5_* artifacts/bbb-html5_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-web_* artifacts/bbb-web_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-learning-dashboard_* artifacts/bbb-learning-dashboard_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# mv artifacts/bbb-config_* artifacts/bbb-config_${VERSION}_amd64.deb 2>/dev/null || true
|
|
|
|
# echo "----Renamed----"
|
|
|
|
# ls artifacts/
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Generate CA
|
|
|
|
run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
2022-04-25 20:11:57 +08:00
|
|
|
mkdir /root/bbb-ci-ssl/
|
|
|
|
cd /root/bbb-ci-ssl/
|
|
|
|
openssl rand -base64 48 > /root/bbb-ci-ssl/bbb-dev-ca.pass ;
|
|
|
|
chmod 600 /root/bbb-ci-ssl/bbb-dev-ca.pass ;
|
|
|
|
openssl genrsa -des3 -out bbb-dev-ca.key -passout file:/root/bbb-ci-ssl/bbb-dev-ca.pass 2048 ;
|
|
|
|
openssl req -x509 -new -nodes -key bbb-dev-ca.key -sha256 -days 1460 -passin file:/root/bbb-ci-ssl/bbb-dev-ca.pass -out bbb-dev-ca.crt -subj "/C=CA/ST=BBB/L=BBB/O=BBB/OU=BBB/CN=BBB-DEV" ;
|
2023-08-02 01:51:21 +08:00
|
|
|
EOF
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Trust CA
|
|
|
|
run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
2022-04-25 20:11:57 +08:00
|
|
|
sudo mkdir /usr/local/share/ca-certificates/bbb-dev/
|
|
|
|
sudo cp /root/bbb-ci-ssl/bbb-dev-ca.crt /usr/local/share/ca-certificates/bbb-dev/
|
|
|
|
sudo chmod 644 /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt
|
|
|
|
sudo update-ca-certificates
|
2023-08-02 01:51:21 +08:00
|
|
|
EOF
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Generate certificate
|
|
|
|
run: |
|
|
|
|
sudo sh -c '
|
|
|
|
cd /root/bbb-ci-ssl/
|
2023-02-16 03:14:06 +08:00
|
|
|
echo "$(hostname -I | cut -d" " -f1) bbb-ci.test" >> /etc/hosts
|
2022-04-25 20:11:57 +08:00
|
|
|
openssl genrsa -out bbb-ci.test.key 2048
|
2023-08-02 01:51:21 +08:00
|
|
|
rm -f bbb-ci.test.csr bbb-ci.test.crt bbb-ci.test.key
|
2022-04-25 20:11:57 +08:00
|
|
|
cat > bbb-ci.test.ext << EOF
|
|
|
|
authorityKeyIdentifier=keyid,issuer
|
|
|
|
basicConstraints=CA:FALSE
|
|
|
|
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
|
|
|
|
subjectAltName = @alt_names
|
|
|
|
[alt_names]
|
|
|
|
DNS.1 = bbb-ci.test
|
|
|
|
EOF
|
2022-06-08 22:25:21 +08:00
|
|
|
openssl req -nodes -newkey rsa:2048 -keyout bbb-ci.test.key -out bbb-ci.test.csr -subj "/C=CA/ST=BBB/L=BBB/O=BBB/OU=BBB/CN=bbb-ci.test" -addext "subjectAltName = DNS:bbb-ci.test"
|
2022-04-25 20:11:57 +08:00
|
|
|
openssl x509 -req -in bbb-ci.test.csr -CA bbb-dev-ca.crt -CAkey bbb-dev-ca.key -CAcreateserial -out bbb-ci.test.crt -days 825 -sha256 -passin file:/root/bbb-ci-ssl/bbb-dev-ca.pass -extfile bbb-ci.test.ext
|
|
|
|
cd
|
|
|
|
|
|
|
|
mkdir -p /local/certs/
|
|
|
|
cp /root/bbb-ci-ssl/bbb-dev-ca.crt /local/certs/
|
|
|
|
cat /root/bbb-ci-ssl/bbb-ci.test.crt > /local/certs/fullchain.pem
|
|
|
|
cat /root/bbb-ci-ssl/bbb-dev-ca.crt >> /local/certs/fullchain.pem
|
|
|
|
cat /root/bbb-ci-ssl/bbb-ci.test.key > /local/certs/privkey.pem
|
|
|
|
'
|
|
|
|
- name: Setup local repository
|
2023-08-02 01:51:21 +08:00
|
|
|
shell: bash
|
2022-04-25 20:11:57 +08:00
|
|
|
run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
2022-04-25 20:11:57 +08:00
|
|
|
apt install -yq dpkg-dev
|
2023-08-02 01:51:21 +08:00
|
|
|
cd /root && wget -nv http://ci.bbb.imdt.dev/cache-3rd-part-packages.tar
|
2022-04-25 20:11:57 +08:00
|
|
|
cp -r /home/runner/work/bigbluebutton/bigbluebutton/artifacts/ /artifacts/
|
|
|
|
cd /artifacts && tar xf /root/cache-3rd-part-packages.tar
|
|
|
|
cd /artifacts && dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
|
|
|
|
echo "deb [trusted=yes] file:/artifacts/ ./" >> /etc/apt/sources.list
|
2023-08-02 01:51:21 +08:00
|
|
|
EOF
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Prepare for install
|
|
|
|
run: |
|
|
|
|
sudo sh -c '
|
|
|
|
apt --purge -y remove apache2-bin
|
|
|
|
'
|
|
|
|
- name: Install BBB
|
|
|
|
run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
|
|
|
cd /root/ && wget -nv https://raw.githubusercontent.com/bigbluebutton/bbb-install/v2.7.x-release/bbb-install.sh -O bbb-install.sh
|
2023-05-19 04:12:45 +08:00
|
|
|
cat bbb-install.sh | sed "s|> /etc/apt/sources.list.d/bigbluebutton.list||g" | bash -s -- -v focal-27-dev -s bbb-ci.test -j -d /certs/
|
2022-04-25 20:11:57 +08:00
|
|
|
bbb-conf --salt bbbci
|
2022-06-08 22:25:21 +08:00
|
|
|
echo "NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt" >> /usr/share/meteor/bundle/bbb-html5-with-roles.conf
|
2023-03-20 22:19:24 +08:00
|
|
|
sed -i "s/\"minify\": true,/\"minify\": false,/" /usr/share/etherpad-lite/settings.json
|
2022-04-25 20:11:57 +08:00
|
|
|
bbb-conf --restart
|
2023-08-02 01:51:21 +08:00
|
|
|
EOF
|
2022-06-08 22:25:21 +08:00
|
|
|
- name: Install test dependencies
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
2022-04-25 20:11:57 +08:00
|
|
|
run: |
|
2022-06-08 22:25:21 +08:00
|
|
|
sh -c '
|
|
|
|
npm install
|
|
|
|
npx playwright install-deps
|
|
|
|
npx playwright install
|
|
|
|
'
|
|
|
|
- name: Run tests
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
|
|
|
env:
|
|
|
|
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt
|
|
|
|
ACTIONS_RUNNER_DEBUG: true
|
|
|
|
BBB_URL: https://bbb-ci.test/bigbluebutton/api
|
|
|
|
BBB_SECRET: bbbci
|
2022-08-23 11:02:59 +08:00
|
|
|
run: npm run test-chromium-ci
|
2022-08-16 06:04:42 +08:00
|
|
|
- name: Run Firefox tests
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
|
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'test Firefox')
|
|
|
|
|| contains(github.event.pull_request.labels.*.name, 'Test Firefox') }}
|
|
|
|
env:
|
|
|
|
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt
|
|
|
|
ACTIONS_RUNNER_DEBUG: true
|
|
|
|
BBB_URL: https://bbb-ci.test/bigbluebutton/api
|
|
|
|
BBB_SECRET: bbbci
|
|
|
|
# patch playwright's firefox so that it uses the system's root certificate authority
|
|
|
|
run: |
|
|
|
|
sh -c '
|
|
|
|
find $HOME/.cache/ms-playwright -name libnssckbi.so -exec rm {} \; -exec ln -s /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so {} \;
|
|
|
|
npm run test-firefox-ci
|
|
|
|
'
|
2022-06-08 22:25:21 +08:00
|
|
|
- if: always()
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: tests-report
|
|
|
|
path: |
|
|
|
|
bigbluebutton-tests/playwright/playwright-report
|
2022-07-07 21:20:19 +08:00
|
|
|
bigbluebutton-tests/playwright/test-results
|
2023-03-17 21:25:58 +08:00
|
|
|
- if: failure()
|
2023-02-17 22:48:11 +08:00
|
|
|
name: Prepare artifacts (configs and logs)
|
|
|
|
run: |
|
2023-08-02 01:51:21 +08:00
|
|
|
sudo -i <<EOF
|
2023-02-17 22:48:11 +08:00
|
|
|
mkdir configs
|
|
|
|
cp /etc/haproxy/haproxy.cfg configs/haproxy.cfg
|
|
|
|
touch /etc/bigbluebutton/turn-stun-servers.xml
|
|
|
|
cp /etc/bigbluebutton/turn-stun-servers.xml configs/turn-stun-servers.xml
|
|
|
|
cp /opt/freeswitch/etc/freeswitch/vars.xml configs/freeswitch_vars.xml
|
|
|
|
cp /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml configs/freeswitch_sip_profiles_external.xml
|
|
|
|
cp /etc/bigbluebutton/bbb-apps-akka.conf configs/bbb-apps-akka.conf
|
|
|
|
cp /etc/bigbluebutton/bbb-fsesl-akka.conf configs/bbb-fsesl-akka.conf
|
|
|
|
cp /etc/bigbluebutton/bbb-html5.yml configs/bbb-html5.yml
|
|
|
|
cp /etc/bigbluebutton/bbb-web.properties configs/bbb-web.properties
|
|
|
|
cp /etc/bigbluebutton/bigbluebutton-release configs/bigbluebutton-release
|
|
|
|
cp /etc/bigbluebutton/turn-stun-servers.xml configs/turn-stun-servers.xml
|
|
|
|
cp /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml configs/bbb-webrtc-sfu-default.yml
|
2023-04-19 04:02:26 +08:00
|
|
|
cp /etc/bbb-webrtc-recorder/bbb-webrtc-recorder.yml configs/bbb-webrtc-recorder-default.yml
|
2023-02-17 22:48:11 +08:00
|
|
|
cp /usr/share/bigbluebutton/nginx/sip.nginx configs/nginx_sip.nginx
|
|
|
|
cp /etc/hosts /configs/hosts
|
2023-08-02 01:51:21 +08:00
|
|
|
mv configs /home/runner/work/bigbluebutton/bigbluebutton/configs
|
|
|
|
chmod a+r -R /home/runner/work/bigbluebutton/bigbluebutton/configs
|
2023-03-17 02:57:34 +08:00
|
|
|
bbb-conf --zip
|
2023-08-02 01:51:21 +08:00
|
|
|
ls -t /root/*.tar.gz | head -1 | xargs -I '{}' cp '{}' /home/runner/work/bigbluebutton/bigbluebutton/bbb-logs.tar.gz
|
|
|
|
EOF
|
2023-03-17 21:25:58 +08:00
|
|
|
- if: failure()
|
2023-02-17 22:48:11 +08:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: bbb-configs
|
|
|
|
path: configs
|
2023-03-17 21:25:58 +08:00
|
|
|
- if: failure()
|
2023-02-17 22:48:11 +08:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-03-17 21:25:58 +08:00
|
|
|
name: bbb-logs
|
2023-04-19 04:02:26 +08:00
|
|
|
path: ./bbb-logs.tar.gz
|