forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 751 Bytes
/
unitTests.yml
File metadata and controls
37 lines (30 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Unit Tests
on:
pull_request:
paths-ignore:
- 'locales/**'
push:
branches:
- develop
jobs:
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 8
strategy:
fail-fast: true
matrix:
node: [18]
name: Unit tests (Jest)
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install dependencies
uses: './.github/actions/install-deps'
- name: Run tests
run: |
pnpm test:ci
if git diff --name-only HEAD^1 | grep -q '^apps/' && ! git diff --name-only HEAD^1 | grep -q '^apps/web/'; then
cd apps/web && npx vitest run src/__tests__/translations.test.ts
fi