forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.11 KB
/
expotools.yml
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
name: Expotools
on:
workflow_dispatch: {}
push:
branches: [main, 'sdk-*']
paths:
- .github/workflows/expotools.yml
- tools/**
pull_request:
paths:
- .github/workflows/expotools.yml
- tools/**
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
- name: ♻️ Restore caches
uses: ./.github/actions/expo-caches
id: expo-caches
with:
yarn-tools: 'true'
- name: 🧶 Install modules in tools dir
if: steps.expo-caches.outputs.yarn-tools-hit != 'true'
run: yarn install --ignore-scripts --frozen-lockfile
working-directory: tools
- name: 🛠 Compile TypeScript sources
run: yarn build
working-directory: tools
- name: 🛠 Typecheck sources
run: yarn tsc --noEmit
working-directory: tools
- name: 🚨 Lint TypeScript sources
run: yarn lint --max-warnings 0
working-directory: tools