pull/7267/head
zomars 2023-02-20 21:47:01 -07:00
parent dd1d86beb2
commit 2f048acbe6
2 changed files with 10 additions and 21 deletions

View File

@ -42,6 +42,11 @@ jobs:
needs: setup needs: setup
uses: ./.github/workflows/check-types.yml uses: ./.github/workflows/check-types.yml
test:
name: Type check
needs: setup
uses: ./.github/workflows/test.yml
lint: lint:
name: Linters name: Linters
needs: setup needs: setup

View File

@ -1,33 +1,17 @@
name: Unit tests name: Unit tests
on: on:
pull_request_target: # So we can test on forks workflow_call:
branches:
- main
paths:
- apps/web/**
- packages/**
workflow_run: workflow_run:
workflows: [Crowdin Action] workflows: [Crowdin Action]
types: [completed] types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
test: test:
timeout-minutes: 20 timeout-minutes: 20
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - uses: actions/checkout@v2
uses: actions/checkout@v2 - uses: ./.github/actions/dangerous-git-checkout
with:
ref: ${{ github.event.pull_request.head.sha }} # So we can test on forks
fetch-depth: 2
# Should be an 8GB machine as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
- run: echo 'NODE_OPTIONS="--max_old_space_size=6144"' >> $GITHUB_ENV - run: echo 'NODE_OPTIONS="--max_old_space_size=6144"' >> $GITHUB_ENV
- name: Use Node 16.x - uses: ./.github/actions/yarn-install
uses: actions/setup-node@v3 # Should be an 8GB machine as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
with:
node-version: 16.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn test - run: yarn test