-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
56 lines (53 loc) · 1.58 KB
/
worklets-static-checks.yml
File metadata and controls
56 lines (53 loc) · 1.58 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Worklets static checks
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
merge_group:
branches:
- main
push:
branches:
- main
workflow_call:
workflow_dispatch:
jobs:
worklets-static-checks:
if: github.repository == 'software-mansion/react-native-reanimated'
env:
PACKAGE_PATH: packages/react-native-worklets
runs-on: ubuntu-latest
concurrency:
group: worklets-static-checks-${{ github.ref }}
cancel-in-progress: true
steps:
# Setup VM
- name: checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: yarn
- name: Clear annotations
run: .github/workflows/helper/clear-annotations.sh
# Setup repo
- name: Install monorepo node dependencies
run: yarn install --immutable
- name: Build Worklets package
run: yarn workspace react-native-worklets build
- name: Build Reanimated package
# Needed for types for TypeScript checks in Example Apps
run: yarn workspace react-native-reanimated build
# Checks
- name: Check TypeScript types
working-directory: ${{ env.PACKAGE_PATH }}
run: yarn type:check
- name: Lint JavaScript
working-directory: ${{ env.PACKAGE_PATH }}
run: yarn lint:js
- name: Find circular dependencies
working-directory: ${{ env.PACKAGE_PATH }}
run: yarn circular-dependency-check
- name: Run Jest unit tests
working-directory: ${{ env.PACKAGE_PATH }}
run: yarn test