-
Notifications
You must be signed in to change notification settings - Fork 10
83 lines (72 loc) · 2.84 KB
/
lint-and-tsc.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Lint, TSC and Changelog checker
on:
push:
branches: [main]
paths:
- .github/workflows/lint-and-tsc.yml
- apps/**
- packages/**
- ts-declarations/**
pull_request:
# The specific activity types are listed here to include "labeled" and "unlabeled"
# (which are not included by default for the "pull_request" trigger).
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels,
# as defined in the (optional) "skipLabels" property.
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
paths:
- .github/workflows/lint-and-tsc.yml
- apps/**
- packages/**
- ts-declarations/**
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: ⬢ Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: 🧶 Install workspace node modules
run: yarn install --frozen-lockfile
- name: 🧶 Install electron node modules
run: yarn install --frozen-lockfile
working-directory: apps/menu-bar/electron
- name: 📦️ Build "common-types" package
run: yarn build
working-directory: packages/common-types
- name: 🏗️ TSC "eas-shared" package files
run: yarn tsc --noEmit
working-directory: packages/eas-shared
- name: 📦️ Build "eas-shared" package
run: yarn build
working-directory: packages/eas-shared
- name: 🏗️ TSC "react-native-electron-modules" package files
run: yarn tsc --noEmit
working-directory: packages/react-native-electron-modules
- name: 📦️ Build "react-native-electron-modules" package
run: yarn build
working-directory: packages/react-native-electron-modules
- name: 🚨 Lint "Orbit" app files
run: yarn lint --max-warnings 0
working-directory: apps/menu-bar
- name: 🏗️ TSC "Orbit" app files
run: yarn tsc --noEmit
working-directory: apps/menu-bar
- name: 🏗️ TSC "Orbit" electron files
run: yarn tsc --noEmit
working-directory: apps/menu-bar/electron
- name: 🏗️ TSC "CLI" app files
run: yarn tsc --noEmit
working-directory: apps/cli
- name: Check CHANGELOG entry
uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: 'skip-changelog-check'
missingUpdateErrorMessage: 'Your changes should be noted in the changelog. Read [Updating Changelogs](https://github.com/expo/expo/blob/main/guides/contributing/Updating%20Changelogs.md) guide and consider adding an appropriate entry.'