Skip to content

v5.1.0

v5.1.0 #242

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Run tests
run: yarn test
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Run tests
run: yarn workspace web-example run test
types:
name: Type checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Check package types
run: yarn types
- name: Check web example types
run: yarn workspace web-example run tsc
- name: Check vanilla example types
run: yarn workspace vanilla-example run tsc
format:
name: Code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Check formatting
run: yarn check-format
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Lint flipper plugin
run: yarn workspace flipper-plugin-performance run lint
build:
name: Package builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Build packages
env:
PACKAGES: flipper-plugin-performance react-native-performance
run: for p in $PACKAGES; do pushd packages/$p && npm pack --dry-run && popd; done