mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
e17734f885
* docs: Remove unused commented code Remove unused Docusaurus defaults as [requested](https://git.io/fh9po) by [core maintainer](https://git.io/fh9p1). * docs: Remove unused Users page * docs: Remove unused help page * docs: Fix website dependencies Add required dependencies and package attributes to avoid yarn and lint warnings. * docs: Add StackOverflow tag * docs: Reinstate i18n props While additional language translations have not been created, there did not appear to be a reason to comment these props out. * docs: Add docs CI script * docs: Remove unnecessary CI config
88 lines
2.1 KiB
YAML
88 lines
2.1 KiB
YAML
version: 2
|
|
|
|
aliases:
|
|
- &filter-only-master
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
defaults: &defaults
|
|
docker:
|
|
- image: circleci/node:10
|
|
working_directory: ~/react-native-testing-library
|
|
|
|
jobs:
|
|
install-dependencies:
|
|
<<: *defaults
|
|
steps:
|
|
- checkout
|
|
- attach_workspace:
|
|
at: ~/react-native-testing-library
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "package.json" }}
|
|
- dependencies-
|
|
- run: yarn install
|
|
- save_cache:
|
|
key: dependencies-{{ checksum "package.json" }}
|
|
paths:
|
|
- node_modules
|
|
- persist_to_workspace:
|
|
root: .
|
|
paths:
|
|
- .
|
|
lint-and-flow:
|
|
<<: *defaults
|
|
steps:
|
|
- attach_workspace:
|
|
at: ~/react-native-testing-library
|
|
- run: |
|
|
yarn lint
|
|
yarn flow-check
|
|
typescript:
|
|
<<: *defaults
|
|
steps:
|
|
- attach_workspace:
|
|
at: ~/react-native-testing-library
|
|
- run: |
|
|
yarn typescript-check
|
|
tests:
|
|
<<: *defaults
|
|
steps:
|
|
- attach_workspace:
|
|
at: ~/react-native-testing-library
|
|
- run: yarn test
|
|
- store_artifacts:
|
|
path: coverage
|
|
destination: coverage
|
|
deploy-website:
|
|
<<: *defaults
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Deploying to GitHub Pages
|
|
command: |
|
|
git config --global user.email "thymikee@users.noreply.github.com"
|
|
git config --global user.name "Michał Pierzchała"
|
|
echo "machine github.com login thymikee password $GITHUB_TOKEN" > ~/.netrc
|
|
cd website && yarn install && GIT_USER=thymikee yarn run publish-gh-pages
|
|
|
|
workflows:
|
|
version: 2
|
|
build-and-test:
|
|
jobs:
|
|
- install-dependencies
|
|
- lint-and-flow:
|
|
requires:
|
|
- install-dependencies
|
|
- typescript:
|
|
requires:
|
|
- install-dependencies
|
|
- tests:
|
|
requires:
|
|
- install-dependencies
|
|
- deploy-website:
|
|
requires:
|
|
- install-dependencies
|
|
filters: *filter-only-master
|