-
Notifications
You must be signed in to change notification settings - Fork 36
55 lines (44 loc) · 1.15 KB
/
main.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
# Overview
# This GitHub Action runs for every PR.
# Note:
# e2e tests can be run for PR. Please use e2e tag.
name: CI [TRIGGER]
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
runs-on: self-hosted
steps:
- name: Show self-hosted machine infomation
run: uname -a
- name: Checkout code
uses: actions/checkout@v4
- name: Setup NodeJS@18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install packages
run: yarn install
- name: Run linters
run: |
yarn lint
yarn typescript:check
yarn prettier:check
- name: Build iOS JS Bundle
run: yarn react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./index.ios.bundle
e2e:
if: contains(github.event.pull_request.labels.*.name, 'e2e')
name: e2e
uses: ./.github/workflows/e2e.yml
secrets: inherit
with:
IS_DEVELOPMENT: false
IS_SSS_ENABLED: true
STORIES_ENABLED: true
IS_NFT_ENABLED: true