Skip to content

Automated update of translation files from Smartling #1971

Automated update of translation files from Smartling

Automated update of translation files from Smartling #1971

Workflow file for this run

name: test unit
on:
push:
branches-ignore:
- main
# When Changesets opens a PR it does not trigger GitHub actions,
# because its token does not have permission to. This is a hack
# to allow one of us to trigger GitHub actions for a changesets PR
# by enabling automerge on the PR.
pull_request_target:
types:
- auto_merge_enabled
branches:
- main # the target branch of the PR
paths:
- '**/CHANGELOG.md' # only changesets releases touch changelogs
jobs:
unit-tests:
if: github.head_ref != 'changeset-release/main'
name: 'vitest'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (1/3)
run: pnpm test -- --shard=1/3
unit-tests-2:
if: github.head_ref != 'changeset-release/main'
name: 'vitest'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (2/3)
run: pnpm test -- --shard=2/3
unit-tests-3:
if: github.head_ref != 'changeset-release/main'
name: 'vitest'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Unit tests (3/3)
run: pnpm test -- --shard=3/3