-
-
Notifications
You must be signed in to change notification settings - Fork 623
65 lines (65 loc) · 1.6 KB
/
lint.yml
File metadata and controls
65 lines (65 loc) · 1.6 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
57
58
59
60
61
62
63
64
65
name: Lint
on:
push:
branches:
- main
- main-labs
pull_request:
branches:
- main
- main-labs
workflow_dispatch:
jobs:
lint-js:
runs-on: ubuntu-latest
concurrency:
group: install-and-lint-js-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js (version from .nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install node dependencies
run: yarn
- name: Lint
run: yarn lint-js
- name: Check types
run: yarn check-types
lint-ios:
runs-on: macos-15
concurrency:
group: install-and-lint-ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js (version from .nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install node dependencies
run: yarn
- name: Lint Swift
run: yarn lint-swift
lint-android:
runs-on: ubuntu-latest
concurrency:
group: install-and-lint-android-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js (version from .nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install node dependencies
run: yarn
- name: Lint
run: yarn lint-android