mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
34 lines
719 B
YAML
34 lines
719 B
YAML
name: Test JS build
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: js-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
- name: Use Node.js 14
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 14
|
|
cache: 'yarn'
|
|
cache-dependency-path: 'yarn.lock'
|
|
- name: Install node dependencies
|
|
run: yarn
|
|
- name: Build
|
|
run: yarn bob
|
|
- name: Test and lint
|
|
run: yarn test
|
|
- name: Build Example App
|
|
working-directory: Example/
|
|
run: yarn && yarn tsc
|
|
|