chore: recreate Vite example #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test-native: | |
name: Test React Native CLI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'yarn' | |
- name: Install Root | |
run: yarn install | |
- name: Install Example | |
run: yarn --cwd examples/native install | |
- name: Validate TypeScript | |
run: yarn --cwd examples/native typecheck | |
- name: Validate ESLint | |
run: yarn --cwd examples/native lint | |
- name: Run tests | |
run: yarn --cwd examples/native test | |
- name: Run perf tests | |
run: cd examples/native && ./reassure-tests.sh | |
- name: Run Danger.js | |
run: yarn danger ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test-web-vite: | |
name: Test Vite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Root | |
run: yarn install | |
- name: Install Example | |
run: yarn --cwd examples/web-vite install | |
- name: Validate TypeScript | |
run: yarn --cwd examples/web-vite typecheck | |
- name: Validate ESLint | |
run: yarn --cwd examples/web-vite lint | |
- name: Run tests | |
run: yarn --cwd examples/web-vite test | |
- name: Run perf tests | |
run: cd examples/web-vite && ./reassure-tests.sh | |
- name: Run Danger.js | |
run: yarn danger ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |