Merge pull request #19777 from stweil/actions
Update several GitHub actions which still used deprecated Node.js 16
This commit is contained in:
commit
73bd33aef1
2
.github/actions/merge-branches/action.yml
vendored
2
.github/actions/merge-branches/action.yml
vendored
@ -6,7 +6,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ${{ github.event.pull_request.base.ref || 'master' }}
|
- name: Checkout ${{ github.event.pull_request.base.ref || 'master' }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.base.ref || '' }}
|
ref: ${{ github.event.pull_request.base.ref || '' }}
|
||||||
fetch-depth: 0 # Fetch all history
|
fetch-depth: 0 # Fetch all history
|
||||||
|
67
.github/workflows/automated-tests.yml
vendored
67
.github/workflows/automated-tests.yml
vendored
@ -75,7 +75,7 @@ jobs:
|
|||||||
- package: others
|
- package: others
|
||||||
build-list: bbb-mkclean bbb-pads bbb-libreoffice-docker bbb-transcription-controller bigbluebutton bbb-livekit
|
build-list: bbb-mkclean bbb-pads bbb-libreoffice-docker bbb-transcription-controller bigbluebutton bbb-livekit
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Merge branches
|
- name: Merge branches
|
||||||
uses: ./.github/actions/merge-branches
|
uses: ./.github/actions/merge-branches
|
||||||
- name: Set cache-key vars
|
- name: Set cache-key vars
|
||||||
@ -90,7 +90,7 @@ jobs:
|
|||||||
- name: Handle cache
|
- name: Handle cache
|
||||||
if: matrix.cache-files-list != ''
|
if: matrix.cache-files-list != ''
|
||||||
id: cache-action
|
id: cache-action
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts.tar
|
path: artifacts.tar
|
||||||
key: ${{ runner.os }}-${{ matrix.package }}-${{ env.BIGBLUEBUTTON_RELEASE }}-commits-${{ env.CACHE_KEY_FILES }}-urls-${{ env.CACHE_KEY_URLS }}
|
key: ${{ runner.os }}-${{ matrix.package }}-${{ env.BIGBLUEBUTTON_RELEASE }}-commits-${{ env.CACHE_KEY_FILES }}-urls-${{ env.CACHE_KEY_URLS }}
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
echo "${{ matrix.build-list || matrix.package }}" | xargs -n 1 ./build/setup.sh
|
echo "${{ matrix.build-list || matrix.package }}" | xargs -n 1 ./build/setup.sh
|
||||||
tar cvf artifacts.tar artifacts/
|
tar cvf artifacts.tar artifacts/
|
||||||
- name: Archive packages
|
- name: Archive packages
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_${{ matrix.package }}.tar
|
name: artifacts_${{ matrix.package }}.tar
|
||||||
path: artifacts.tar
|
path: artifacts.tar
|
||||||
@ -112,74 +112,76 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
shard: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8]
|
shard: [1, 2, 3, 4, 5, 6, 7, 8]
|
||||||
|
env:
|
||||||
|
shard: ${{ matrix.shard }}/8
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Merge branches
|
- name: Merge branches
|
||||||
uses: ./.github/actions/merge-branches
|
uses: ./.github/actions/merge-branches
|
||||||
- run: ./build/get_external_dependencies.sh
|
- run: ./build/get_external_dependencies.sh
|
||||||
- name: Download artifacts_bbb-apps-akka
|
- name: Download artifacts_bbb-apps-akka
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-apps-akka.tar
|
name: artifacts_bbb-apps-akka.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-config
|
- name: Download artifacts_bbb-config
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-config.tar
|
name: artifacts_bbb-config.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-export-annotations
|
- name: Download artifacts_bbb-export-annotations
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-export-annotations.tar
|
name: artifacts_bbb-export-annotations.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-learning-dashboard
|
- name: Download artifacts_bbb-learning-dashboard
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-learning-dashboard.tar
|
name: artifacts_bbb-learning-dashboard.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-playback-record
|
- name: Download artifacts_bbb-playback-record
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-playback-record.tar
|
name: artifacts_bbb-playback-record.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-graphql-server
|
- name: Download artifacts_bbb-graphql-server
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-graphql-server.tar
|
name: artifacts_bbb-graphql-server.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-etherpad
|
- name: Download artifacts_bbb-etherpad
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-etherpad.tar
|
name: artifacts_bbb-etherpad.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-freeswitch
|
- name: Download artifacts_bbb-freeswitch
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-freeswitch.tar
|
name: artifacts_bbb-freeswitch.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-webrtc
|
- name: Download artifacts_bbb-webrtc
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-webrtc.tar
|
name: artifacts_bbb-webrtc.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-web
|
- name: Download artifacts_bbb-web
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-web.tar
|
name: artifacts_bbb-web.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-fsesl-akka
|
- name: Download artifacts_bbb-fsesl-akka
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-fsesl-akka.tar
|
name: artifacts_bbb-fsesl-akka.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts_bbb-html5
|
- name: Download artifacts_bbb-html5
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_bbb-html5.tar
|
name: artifacts_bbb-html5.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifacts_others.tar
|
name: artifacts_others.tar
|
||||||
- run: tar xf artifacts.tar
|
- run: tar xf artifacts.tar
|
||||||
@ -279,13 +281,13 @@ jobs:
|
|||||||
npx playwright install
|
npx playwright install
|
||||||
'
|
'
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: nick-fields/retry@v2
|
uses: nick-fields/retry@v3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 25
|
timeout_minutes: 25
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: |
|
command: |
|
||||||
cd ./bigbluebutton-tests/playwright
|
cd ./bigbluebutton-tests/playwright
|
||||||
npm run test-chromium-ci -- --shard ${{ matrix.shard }}
|
npm run test-chromium-ci -- --shard ${{ env.shard }}
|
||||||
env:
|
env:
|
||||||
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt
|
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt
|
||||||
ACTIONS_RUNNER_DEBUG: true
|
ACTIONS_RUNNER_DEBUG: true
|
||||||
@ -305,13 +307,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sh -c '
|
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 {} \;
|
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 -- --shard ${{ matrix.shard }}
|
npm run test-firefox-ci -- --shard ${{ env.shard }}
|
||||||
'
|
'
|
||||||
- if: always() && github.event_name == 'pull_request'
|
- if: always() && github.event_name == 'pull_request'
|
||||||
name: Upload blob report to GitHub Actions Artifacts
|
name: Upload blob report to GitHub Actions Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: all-blob-reports
|
name: all-blob-reports-${{ matrix.shard }}
|
||||||
path: bigbluebutton-tests/playwright/blob-report
|
path: bigbluebutton-tests/playwright/blob-report
|
||||||
- if: failure()
|
- if: failure()
|
||||||
name: Prepare artifacts (configs and logs)
|
name: Prepare artifacts (configs and logs)
|
||||||
@ -337,15 +339,15 @@ jobs:
|
|||||||
chmod a+r -R /home/runner/work/bigbluebutton/bigbluebutton/configs
|
chmod a+r -R /home/runner/work/bigbluebutton/bigbluebutton/configs
|
||||||
bbb-conf --zip
|
bbb-conf --zip
|
||||||
ls -t /root/*.tar.gz | head -1 | xargs -I '{}' cp '{}' /home/runner/work/bigbluebutton/bigbluebutton/bbb-logs.tar.gz
|
ls -t /root/*.tar.gz | head -1 | xargs -I '{}' cp '{}' /home/runner/work/bigbluebutton/bigbluebutton/bbb-logs.tar.gz
|
||||||
echo "MATRIX_SHARD=$(echo ${{ matrix.shard }} | tr '/' '_')" >> $GITHUB_ENV
|
echo "MATRIX_SHARD=${{ matrix.shard }}_8" >> $GITHUB_ENV
|
||||||
EOF
|
EOF
|
||||||
- if: failure()
|
- if: failure()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bbb-configs-${{ env.MATRIX_SHARD }}
|
name: bbb-configs-${{ env.MATRIX_SHARD }}
|
||||||
path: configs
|
path: configs
|
||||||
- if: failure()
|
- if: failure()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bbb-logs-${{ env.MATRIX_SHARD }}
|
name: bbb-logs-${{ env.MATRIX_SHARD }}
|
||||||
path: ./bbb-logs.tar.gz
|
path: ./bbb-logs.tar.gz
|
||||||
@ -354,23 +356,24 @@ jobs:
|
|||||||
needs: install-and-run-tests
|
needs: install-and-run-tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ./bigbluebutton-tests/playwright
|
working-directory: ./bigbluebutton-tests/playwright
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Download all blob reports from GitHub Actions Artifacts
|
- name: Download all blob reports from GitHub Actions Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: all-blob-reports
|
pattern: all-blob-reports-*
|
||||||
path: bigbluebutton-tests/playwright/all-blob-reports
|
path: bigbluebutton-tests/playwright/all-blob-reports
|
||||||
|
merge-multiple: true
|
||||||
- name: Merge into HTML Report
|
- name: Merge into HTML Report
|
||||||
working-directory: ./bigbluebutton-tests/playwright
|
working-directory: ./bigbluebutton-tests/playwright
|
||||||
run: npx playwright merge-reports --reporter html ./all-blob-reports
|
run: npx playwright merge-reports --reporter html ./all-blob-reports
|
||||||
- name: Upload HTML tests report
|
- name: Upload HTML tests report
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: tests-report
|
name: tests-report
|
||||||
path: |
|
path: |
|
||||||
@ -385,7 +388,7 @@ jobs:
|
|||||||
echo ${{ github.run_id }} > ./pr-comment-data/workflow_id
|
echo ${{ github.run_id }} > ./pr-comment-data/workflow_id
|
||||||
- name: Upload PR data for auto-comment
|
- name: Upload PR data for auto-comment
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pr-comment-data
|
name: pr-comment-data
|
||||||
path: pr-comment-data
|
path: pr-comment-data
|
||||||
|
2
.github/workflows/check-merge-conflict.yml
vendored
2
.github/workflows/check-merge-conflict.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check for dirty pull requests
|
- name: Check for dirty pull requests
|
||||||
uses: eps1lon/actions-label-merge-conflict@releases/2.x
|
uses: eps1lon/actions-label-merge-conflict@v3
|
||||||
with:
|
with:
|
||||||
dirtyLabel: "status: conflict"
|
dirtyLabel: "status: conflict"
|
||||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
4
.github/workflows/deploy-docs.yml
vendored
4
.github/workflows/deploy-docs.yml
vendored
@ -22,8 +22,8 @@ jobs:
|
|||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm
|
cache: npm
|
||||||
|
2
.github/workflows/ts-code-compilation.yml
vendored
2
.github/workflows/ts-code-compilation.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
ts-code-compilation:
|
ts-code-compilation:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Merge branches
|
- name: Merge branches
|
||||||
|
2
.github/workflows/ts-code-validation.yml
vendored
2
.github/workflows/ts-code-validation.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
ts-code-validation:
|
ts-code-validation:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Merge branches
|
- name: Merge branches
|
||||||
|
Loading…
Reference in New Issue
Block a user