mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
d0cb5439a2
* chore: disable test examples on main * chore: github actions with manual trigger to test examples * chore: run on multiple node versions * chore: trigger initial workflow run * chore: restore manual workflow trigger * chore: refactor to matrix * chore: trigger run * chore: return to workflow_dispatch
26 lines
573 B
YAML
26 lines
573 B
YAML
name: Test Example Apps
|
|
|
|
on: [workflow_dispatch]
|
|
|
|
jobs:
|
|
test-example:
|
|
strategy:
|
|
matrix:
|
|
node: [14, 16, 18]
|
|
example: [basic, redux, reactnavigation]
|
|
name: Test Example
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'yarn'
|
|
|
|
- name: Install and build
|
|
run: cd examples/${{ matrix.example }} && yarn install && yarn test
|