Files
callstack__react-native-tes…/.github/workflows/example-apps.yml
T
Maciej Jastrzebski d0cb5439a2 chore: disable test examples workflow on main merge, add GH action for test examples (#1058)
* 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
2022-08-11 10:38:21 +02:00

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