-
Notifications
You must be signed in to change notification settings - Fork 146
81 lines (78 loc) · 2.48 KB
/
restyle.yml
File metadata and controls
81 lines (78 loc) · 2.48 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: restyle
on:
push:
branches:
- master
pull_request:
env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 20.11.0
jobs:
build-ts:
name: 'Build Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn build
build-fixture-ts:
name: 'Build fixture Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn build
cd fixture
yarn
yarn build:android
yarn build:ios
lint-ts:
name: 'Lint Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn lint
test-ts:
name: 'Test Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn test --forceExit
# Note that we decided not to build the iOS fixture app as it would take around 30 minutes. Since updates to the fixture app
# will generally not contain native code changes, the build is not entirely necessary and can be added in the future if needed.
build-android:
name: 'Build Android'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ env.NODE_VERSION }}
- name: ruby setup
uses: ruby/setup-ruby@ac793fdd38cc468a4dd57246fa9d0e868aba9085 # v1.270.0
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- run: |
cd fixture
yarn
cd android
./gradlew assembleDebug