47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: tests BiDi
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/tests_bidi.yml
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
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-24.04
|
|
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
|
|
channel: [bidi-chrome-beta]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install browser
|
|
run: |
|
|
if [[ ${{ matrix.channel }} == bidi-chrome-beta ]]; then
|
|
curl -O https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
|
|
sudo dpkg -i google-chrome-beta_current_amd64.deb
|
|
fi
|
|
- uses: ./.github/actions/run-test
|
|
with:
|
|
node-version: 20
|
|
browsers-to-install: chromium
|
|
command: npm run biditest -- --project=${{ matrix.channel }}*
|
|
bot-name: bidi-${{ matrix.channel }}
|
|
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 }}
|