diff --git a/.github/workflows/browsertesting-issue-body.md b/.github/workflows/browsertesting-issue-body.md new file mode 100644 index 000000000000..eb3780f32a8c --- /dev/null +++ b/.github/workflows/browsertesting-issue-body.md @@ -0,0 +1,21 @@ +## Description + +Selenium is used in the aspnetcore repo for automated E2E integration testing. +Playwright is used in the aspnetcore repo for some benchmarking apps. We need to ensure the docker file and the package version match. + +## Instructions + +To update the Selenium and Playwright versions, these files need to be updated: + +### Packages + - [ ] [Selenium in `Versions.props`](eng/Versions.props) from NuGet: + - [ ] [Selenium.WebDriver](https://www.nuget.org/packages/Selenium.WebDriver/) (Config variable `SeleniumWebDriverVersion`) + - [ ] [Selenium.Support](https://www.nuget.org/packages/Selenium.Support/) (Config variable `SeleniumSupportVersion`) + - [ ] Ensure Playwright versions match + - [ ] [Blazor Wasm benchmarks in `src/Components/benchmarkapps/Wasm.Performance/dockerfile`](src/Components/benchmarkapps/Wasm.Performance/dockerfile) (image starts with `mcr.microsoft.com`) + - [ ] [Playwright package version](eng/Versions.props) (Config variable `PlaywrightVersion`) + +## Actions + +Please, open the PR against `main` branch and include changes to the files listed above. +Also mention @dotnet/aspnet-build in the opened Pull Request - this will be a responsible engineer for changes validation. diff --git a/.github/workflows/browsertesting-open-issue.yml b/.github/workflows/browsertesting-open-issue.yml new file mode 100644 index 000000000000..4f8b49e20920 --- /dev/null +++ b/.github/workflows/browsertesting-open-issue.yml @@ -0,0 +1,26 @@ +name: "[Monthly] Schedule Browser-Testing Dependencies Update Issue" + +on: + schedule: + # Runs on the first day of every month at midnight UTC + - cron: '0 0 1 * *' + workflow_dispatch: # for manual triggering + +jobs: + create-issue: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # copilot can be assigned to the issue + # https://cli.github.com/manual/gh_issue_create + - name: Create Issue From Template + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + run: | + gh issue create \ + --title "Request Browser-Testing Dependencies Update" \ + --body-file ".github/workflows/browsertesting-issue-body.md" \ + --assignee "@copilot"