2023-08-29 00:40:49 +08:00
|
|
|
name: "Automated tests"
|
2022-04-25 20:11:57 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-08-29 00:40:49 +08:00
|
|
|
- "develop"
|
|
|
|
- "v2.[5-9].x-release"
|
|
|
|
- "v[3-9].*.x-release"
|
2023-03-29 21:36:18 +08:00
|
|
|
paths-ignore:
|
2023-08-29 00:40:49 +08:00
|
|
|
- "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:
|
2023-08-29 00:40:49 +08:00
|
|
|
- "docs/**"
|
|
|
|
- "**/*.md"
|
2022-07-22 03:50:18 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2023-08-29 00:40:49 +08:00
|
|
|
concurrency:
|
2023-08-17 04:21:42 +08:00
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-04-25 20:11:57 +08:00
|
|
|
jobs:
|
2023-08-29 00:40:49 +08:00
|
|
|
build-package:
|
2023-08-05 03:47:23 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2023-08-29 00:40:49 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
package:
|
|
|
|
[
|
|
|
|
bbb-apps-akka,
|
|
|
|
bbb-config,
|
|
|
|
bbb-export-annotations,
|
|
|
|
bbb-learning-dashboard,
|
|
|
|
bbb-playback-record,
|
2023-08-31 22:05:32 +08:00
|
|
|
bbb-graphql-server,
|
2023-08-29 00:40:49 +08:00
|
|
|
bbb-etherpad,
|
|
|
|
bbb-web,
|
|
|
|
bbb-fsesl-akka,
|
|
|
|
bbb-html5,
|
|
|
|
bbb-freeswitch,
|
|
|
|
bbb-webrtc,
|
|
|
|
others,
|
|
|
|
]
|
|
|
|
include:
|
|
|
|
- package: bbb-apps-akka
|
|
|
|
cache-files-list: akka-bbb-apps bbb-common-message
|
|
|
|
- package: bbb-config
|
|
|
|
cache-files-list: bigbluebutton-config
|
|
|
|
- package: bbb-export-annotations
|
|
|
|
cache-files-list: bbb-export-annotations
|
|
|
|
- package: bbb-learning-dashboard
|
|
|
|
cache-files-list: bbb-learning-dashboard
|
|
|
|
- package: bbb-playback-record
|
|
|
|
build-list: bbb-playback bbb-playback-notes bbb-playback-podcast bbb-playback-presentation bbb-playback-screenshare bbb-playback-video bbb-record-core
|
2023-08-31 22:05:32 +08:00
|
|
|
- package: bbb-graphql-server
|
|
|
|
build-name: bbb-graphql-server
|
|
|
|
build-list: bbb-graphql-server bbb-graphql-middleware
|
2023-08-29 00:40:49 +08:00
|
|
|
- package: bbb-etherpad
|
|
|
|
cache-files-list: bbb-etherpad.placeholder.sh build/packages-template/bbb-etherpad
|
|
|
|
cache-urls-list: https://api.github.com/repos/mconf/ep_pad_ttl/commits https://api.github.com/repos/alangecker/bbb-etherpad-plugin/commits https://api.github.com/repos/mconf/ep_redis_publisher/commits https://api.github.com/repos/alangecker/bbb-etherpad-skin/commits
|
|
|
|
- package: bbb-web
|
|
|
|
cache-files-list: bigbluebutton-web bbb-common-message bbb-common-web
|
|
|
|
- package: bbb-fsesl-akka
|
|
|
|
cache-files-list: akka-bbb-fsesl bbb-common-message
|
|
|
|
- package: bbb-html5
|
|
|
|
build-list: bbb-html5-nodejs bbb-html5
|
|
|
|
cache-files-list: bigbluebutton-html5
|
|
|
|
- package: bbb-freeswitch
|
|
|
|
build-list: bbb-freeswitch-core bbb-freeswitch-sounds
|
|
|
|
cache-files-list: freeswitch.placeholder.sh build/packages-template/bbb-freeswitch-core build/packages-template/bbb-freeswitch-sounds
|
|
|
|
cache-urls-list: http://bigbluebutton.org/downloads/sounds.tar.gz
|
|
|
|
- package: bbb-webrtc
|
|
|
|
build-list: bbb-webrtc-sfu bbb-webrtc-recorder
|
|
|
|
cache-files-list: bbb-webrtc-sfu.placeholder.sh bbb-webrtc-recorder.placeholder.sh build/packages-template/bbb-webrtc-sfu build/packages-template/bbb-webrtc-recorder
|
|
|
|
- package: others
|
|
|
|
build-list: bbb-mkclean bbb-pads bbb-libreoffice-docker bbb-transcription-controller bigbluebutton
|
2023-08-05 03:47:23 +08:00
|
|
|
steps:
|
2023-08-29 00:40:49 +08:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Merge branches
|
|
|
|
uses: ./.github/actions/merge-branches
|
|
|
|
- name: Set cache-key vars
|
|
|
|
run: |
|
|
|
|
echo "CACHE_KEY_FILES=$(echo '${{ matrix.cache-files-list }} .gitlab-ci.yml build/deb-helper.sh' | xargs -n1 git log -1 --format=%h -- | tr '\n' '-' | sed 's/-$//')" >> $GITHUB_ENV
|
|
|
|
echo "CACHE_KEY_URLS=$(echo '${{ matrix.cache-urls-list }}' | xargs -r -n 1 curl -Is | grep -i 'Last-Modified' | md5sum | cut -c1-10)" >> $GITHUB_ENV
|
|
|
|
cat bigbluebutton-config/bigbluebutton-release >> $GITHUB_ENV
|
|
|
|
echo "FORCE_GIT_REV=0" >> $GITHUB_ENV #used by setup.sh
|
|
|
|
echo "FORCE_COMMIT_DATE=0" >> $GITHUB_ENV #used by setup.sh
|
|
|
|
- name: Handle cache
|
|
|
|
if: matrix.cache-files-list != ''
|
|
|
|
id: cache-action
|
|
|
|
uses: actions/cache@v3
|
2023-08-05 03:47:23 +08:00
|
|
|
with:
|
2023-08-29 00:40:49 +08:00
|
|
|
path: artifacts.tar
|
|
|
|
key: ${{ runner.os }}-${{ matrix.package }}-${{ env.BIGBLUEBUTTON_RELEASE }}-commits-${{ env.CACHE_KEY_FILES }}-urls-${{ env.CACHE_KEY_URLS }}
|
|
|
|
- if: ${{ steps.cache-action.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate artifacts
|
|
|
|
shell: bash
|
2023-08-05 03:47:23 +08:00
|
|
|
run: |
|
2023-08-29 00:40:49 +08:00
|
|
|
./build/get_external_dependencies.sh
|
|
|
|
echo "${{ matrix.build-list || matrix.package }}" | xargs -n 1 ./build/setup.sh
|
|
|
|
tar cvf artifacts.tar artifacts/
|
|
|
|
- name: Archive packages
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_${{ matrix.package }}.tar
|
|
|
|
path: artifacts.tar
|
|
|
|
install-and-run-tests:
|
|
|
|
needs: build-package
|
2023-08-31 22:05:32 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2023-08-31 21:54:46 +08:00
|
|
|
timeout-minutes: 60
|
2023-08-29 00:40:49 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
shard: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Merge branches
|
|
|
|
uses: ./.github/actions/merge-branches
|
2023-08-05 03:47:23 +08:00
|
|
|
- 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
|
|
|
|
- name: Download artifacts_bbb-export-annotations
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-export-annotations.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-learning-dashboard
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-learning-dashboard.tar
|
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Download artifacts_bbb-playback-record
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-playback-record.tar
|
|
|
|
- run: tar xf artifacts.tar
|
2023-08-31 22:05:32 +08:00
|
|
|
- name: Download artifacts_bbb-graphql-server
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-graphql-server.tar
|
|
|
|
- run: tar xf artifacts.tar
|
2023-08-05 03:47:23 +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
|
2023-08-17 04:21:42 +08:00
|
|
|
- name: Download artifacts_bbb-webrtc
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: artifacts_bbb-webrtc.tar
|
|
|
|
- run: tar xf artifacts.tar
|
2023-08-05 03:47:23 +08:00
|
|
|
- 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:
|
2023-08-17 04:21:42 +08:00
|
|
|
name: artifacts_others.tar
|
2023-08-05 03:47:23 +08:00
|
|
|
- run: tar xf artifacts.tar
|
|
|
|
- name: Extracting files .tar
|
|
|
|
run: |
|
|
|
|
set -e
|
|
|
|
pwd
|
|
|
|
echo "----ls artifacts/----"
|
|
|
|
ls artifacts/
|
|
|
|
echo "Done"
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Generate CA
|
|
|
|
run: |
|
2023-08-05 03:47:23 +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-05 03:47:23 +08:00
|
|
|
EOF
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Trust CA
|
|
|
|
run: |
|
2023-08-05 03:47:23 +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-05 03:47:23 +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-05 03:47:23 +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-05 03:47:23 +08:00
|
|
|
shell: bash
|
2022-04-25 20:11:57 +08:00
|
|
|
run: |
|
2023-08-29 00:40:49 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
|
|
|
apt install -yq dpkg-dev
|
|
|
|
cd /root && wget -nv http://ci.bbb.imdt.dev/cache-3rd-part-packages.tar
|
|
|
|
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
|
|
|
|
EOF
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Prepare for install
|
|
|
|
run: |
|
2023-08-29 00:40:49 +08:00
|
|
|
sudo sh -c '
|
|
|
|
apt --purge -y remove apache2-bin
|
|
|
|
'
|
2022-04-25 20:11:57 +08:00
|
|
|
- name: Install BBB
|
|
|
|
run: |
|
2023-08-29 00:40:49 +08:00
|
|
|
sudo -i <<EOF
|
|
|
|
set -e
|
2023-08-31 22:05:32 +08:00
|
|
|
cd /root/ && wget -nv https://raw.githubusercontent.com/bigbluebutton/bbb-install/v2.8.x-release/bbb-install.sh -O bbb-install.sh
|
|
|
|
cat bbb-install.sh | sed "s|> /etc/apt/sources.list.d/bigbluebutton.list||g" | bash -s -- -v jammy-28-develop -s bbb-ci.test -j -d /certs/
|
2023-08-29 00:40:49 +08:00
|
|
|
bbb-conf --salt bbbci
|
|
|
|
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
|
|
|
|
sed -i "s/\"minify\": true,/\"minify\": false,/" /usr/share/etherpad-lite/settings.json
|
|
|
|
bbb-conf --restart
|
|
|
|
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 '
|
2023-08-29 00:40:49 +08:00
|
|
|
npm ci
|
2022-06-08 22:25:21 +08:00
|
|
|
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
|
2023-08-29 00:40:49 +08:00
|
|
|
run: npm run test-chromium-ci -- --shard ${{ matrix.shard }}
|
2022-08-16 06:04:42 +08:00
|
|
|
- name: Run Firefox tests
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
2023-08-29 00:40:49 +08:00
|
|
|
if: |
|
|
|
|
contains(github.event.pull_request.labels.*.name, 'test Firefox') ||
|
|
|
|
contains(github.event.pull_request.labels.*.name, 'Test Firefox')
|
2022-08-16 06:04:42 +08:00
|
|
|
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 {} \;
|
2023-08-29 00:40:49 +08:00
|
|
|
npm run test-firefox-ci -- --shard ${{ matrix.shard }}
|
2022-08-16 06:04:42 +08:00
|
|
|
'
|
2023-08-29 00:40:49 +08:00
|
|
|
- if: always() && github.event_name == 'pull_request'
|
|
|
|
name: Upload blob report to GitHub Actions Artifacts
|
2022-06-08 22:25:21 +08:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-08-29 00:40:49 +08:00
|
|
|
name: all-blob-reports
|
|
|
|
path: bigbluebutton-tests/playwright/blob-report
|
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-05 03:47:23 +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-05 03:47:23 +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-05 03:47:23 +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
|
2023-08-29 00:40:49 +08:00
|
|
|
upload-report:
|
|
|
|
if: always()
|
|
|
|
needs: install-and-run-tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
- name: Install dependencies
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
|
|
|
run: npm ci
|
|
|
|
- name: Download all blob reports from GitHub Actions Artifacts
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: all-blob-reports
|
|
|
|
path: bigbluebutton-tests/playwright/all-blob-reports
|
|
|
|
- name: Merge into HTML Report
|
|
|
|
working-directory: ./bigbluebutton-tests/playwright
|
|
|
|
run: npx playwright merge-reports --reporter html ./all-blob-reports
|
|
|
|
- name: Upload HTML tests report
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: tests-report
|
|
|
|
path: |
|
|
|
|
bigbluebutton-tests/playwright/playwright-report
|
|
|
|
bigbluebutton-tests/playwright/test-results
|
|
|
|
- name: Write PR data for auto-comment
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
working-directory: ./
|
|
|
|
run: |
|
|
|
|
mkdir -p ./pr-comment-data
|
|
|
|
echo ${{ github.event.number }} > ./pr-comment-data/pr_number
|
|
|
|
echo ${{ github.run_id }} > ./pr-comment-data/workflow_id
|
|
|
|
- name: Upload PR data for auto-comment
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: pr-comment-data
|
|
|
|
path: pr-comment-data
|