forked from facebook/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.08 KB
/
tests.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
name: facebook/react-native-website/tests
on:
push:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: save_cache
uses: actions/[email protected]
with:
path: "~/react-native-website"
key: v1-repo-${{ github.sha }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: yarn
- uses: "./.github/actions/restore_cache_checkout"
- uses: "./.github/actions/run_yarn"
- run: |
yarn install
yarn ci:lint
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: yarn
- uses: "./.github/actions/restore_cache_checkout"
- uses: "./.github/actions/run_yarn"
- run: |
yarn install
yarn build