test vrt #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: VRT CI | |
on: | |
pull_request: | |
# TODO: once testing is done enable pull_request on all branches again | |
branches: | |
- vrt-gha-testing | |
concurrency: | |
# see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NX_PARALLEL: 6 # ubuntu-latest = 4-core CPU / 16 GB of RAM | macos-14-xlarge (arm) = 6-core CPU / 14 GB of RAM | |
NX_PREFER_TS_NODE: true | |
NX_VERBOSE_LOGGING: true | |
permissions: | |
contents: 'read' | |
actions: 'read' | |
jobs: | |
generate_vrt_screenshots: | |
if: ${{ github.repository_owner == 'microsoft' }} | |
runs-on: macos-14-xlarge | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
with: | |
main-branch-name: 'master' | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version: '20' | |
- run: yarn install --frozen-lockfile | |
- run: yarn playwright install --with-deps | |
- name: Save PR number | |
run: echo ${{ github.event.number }} > pr.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pr-number | |
retention-days: 1 | |
if-no-files-found: error | |
path: | | |
pr.txt |