mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
723c8e2c04
* docs: basic cookbook docs and app * chore: add tests * chore: enable example apps * chore: fix typecheck * chore: add lint & fix issues * docs: tweaks * docs: tweaks * docs: tweaks * chore: tweaks
36 lines
725 B
YAML
36 lines
725 B
YAML
name: Validate Example Apps
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: ['**']
|
|
|
|
jobs:
|
|
test-example:
|
|
strategy:
|
|
matrix:
|
|
example: [basic, cookbook]
|
|
|
|
name: Test Example
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'yarn'
|
|
|
|
- name: Install and build
|
|
run: yarn --cwd examples/${{ matrix.example }} install
|
|
|
|
- name: Type Check
|
|
run: yarn --cwd examples/${{ matrix.example }} typecheck
|
|
|
|
- name: Test
|
|
run: yarn --cwd examples/${{ matrix.example }} test
|