mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-16 20:28:41 +00:00
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.x'
|
|
- run: npm install -g yarn
|
|
- run: yarn install
|
|
- run: yarn fmt:report
|
|
|
|
type-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.x'
|
|
- run: npm install -g yarn
|
|
- run: yarn install
|
|
- run: yarn flow
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.x'
|
|
- run: npm install -g yarn
|
|
- run: yarn install
|
|
- run: yarn lint:report
|
|
|
|
unit-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14.x'
|
|
- run: npm install -g yarn
|
|
- run: yarn install
|
|
- run: yarn jest
|