devops: run BiDi tests
This commit is contained in:
parent
3fe1263643
commit
c69533b2e5
48
.github/workflows/tests_bidi.yml
vendored
Normal file
48
.github/workflows/tests_bidi.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: tests BiDi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- release-*
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- release-*
|
||||||
|
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test_bidi:
|
||||||
|
name: BiDi
|
||||||
|
environment: ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write # This is required for OIDC login (azure/login) to succeed
|
||||||
|
contents: read # This is required for actions/checkout to succeed
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
# TODO: add Firefox
|
||||||
|
project: [chrome]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Configure executable path
|
||||||
|
run: |
|
||||||
|
if [ ${{ matrix.project }} == "chrome" ]; then
|
||||||
|
echo "BIDIPATH=/opt/google/chrome/chrome" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
sudo apt-get install -y firefox
|
||||||
|
echo "BIDIPATH=/usr/bin/firefox" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
- uses: ./.github/actions/run-test
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
browsers-to-install: chromium
|
||||||
|
command: npm run biditest -- --project=*${{ matrix.project }}*
|
||||||
|
bot-name: bidi-${{ matrix.project }}
|
||||||
|
flakiness-client-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
|
||||||
|
flakiness-tenant-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
|
||||||
|
flakiness-subscription-id: ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
|
||||||
Loading…
Reference in a new issue