2022-09-02 02:00:48 +00:00
|
|
|
name: Unit tests
|
|
|
|
on:
|
2023-02-22 00:10:39 +00:00
|
|
|
workflow_call:
|
2023-01-12 21:22:11 +00:00
|
|
|
workflow_run:
|
|
|
|
workflows: [Crowdin Action]
|
|
|
|
types: [completed]
|
2022-09-02 02:00:48 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
timeout-minutes: 20
|
2023-05-29 19:54:02 +00:00
|
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
2022-09-02 02:00:48 +00:00
|
|
|
steps:
|
2023-02-22 00:10:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: ./.github/actions/dangerous-git-checkout
|
2022-11-11 09:57:44 +00:00
|
|
|
- run: echo 'NODE_OPTIONS="--max_old_space_size=6144"' >> $GITHUB_ENV
|
2023-02-22 00:10:39 +00:00
|
|
|
- uses: ./.github/actions/yarn-install
|
|
|
|
# Should be an 8GB machine as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
|
2022-09-02 02:00:48 +00:00
|
|
|
- run: yarn test
|
2023-10-25 13:18:25 +00:00
|
|
|
# We could add different timezones here that we need to run our tests in
|
|
|
|
- run: TZ=America/Los_Angeles yarn test -- --timeZoneDependentTestsOnly
|