diff --git a/.github/workflows/ci-native-cli.yaml b/.github/workflows/ci-native-cli.yaml index a239d35..f17fa72 100644 --- a/.github/workflows/ci-native-cli.yaml +++ b/.github/workflows/ci-native-cli.yaml @@ -3,10 +3,10 @@ name: React Native - RN CLI on: push: branches: [main] - paths: ['examples/native-cli/**'] + paths: ['examples/native-cli/**', '.github/workflows/ci-native-cli.yaml'] pull_request: branches: ['**'] - paths: ['examples/native-cli/**'] + paths: ['examples/native-cli/**', '.github/workflows/ci-native-cli.yaml'] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -26,7 +26,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - name: Install Example diff --git a/.github/workflows/ci-native-expo.yaml b/.github/workflows/ci-native-expo.yaml index bda0a8b..420c80a 100644 --- a/.github/workflows/ci-native-expo.yaml +++ b/.github/workflows/ci-native-expo.yaml @@ -3,10 +3,10 @@ name: React Native - Expo on: push: branches: [main] - paths: ['examples/native-expo/**'] + paths: ['examples/native-expo/**', '.github/workflows/ci-native-expo.yaml'] pull_request: branches: ['**'] - paths: ['examples/native-expo/**'] + paths: ['examples/native-expo/**', '.github/workflows/ci-native-expo.yaml'] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -26,7 +26,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - name: Install Example diff --git a/.github/workflows/ci-web-nextjs.yaml b/.github/workflows/ci-web-nextjs.yaml index 985a005..131a204 100644 --- a/.github/workflows/ci-web-nextjs.yaml +++ b/.github/workflows/ci-web-nextjs.yaml @@ -3,10 +3,10 @@ name: Web - Next.js on: push: branches: [main] - paths: ['examples/web-nextjs/**'] + paths: ['examples/web-nextjs/**', '.github/workflows/ci-web-nextjs.yaml'] pull_request: branches: ['**'] - paths: ['examples/web-nextjs/**'] + paths: ['examples/web-nextjs/**', '.github/workflows/ci-web-nextjs.yaml'] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -26,7 +26,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - name: Install Example diff --git a/.github/workflows/ci-web-vite.yaml b/.github/workflows/ci-web-vite.yaml index dc15517..ad77546 100644 --- a/.github/workflows/ci-web-vite.yaml +++ b/.github/workflows/ci-web-vite.yaml @@ -3,10 +3,10 @@ name: Web - Vite on: push: branches: [main] - paths: ['examples/web-vite/**'] + paths: ['examples/web-vite/**', '.github/workflows/ci-web-vite.yaml'] pull_request: branches: ['**'] - paths: ['examples/web-vite/**'] + paths: ['examples/web-vite/**', '.github/workflows/ci-web-vite.yaml'] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -26,7 +26,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - name: Install Example diff --git a/.github/workflows/test-example-apps.yml b/.github/workflows/test-example-apps.yml deleted file mode 100644 index 7038226..0000000 --- a/.github/workflows/test-example-apps.yml +++ /dev/null @@ -1,152 +0,0 @@ -name: Examples - -on: - push: - branches: [main] - paths: ['examples/xxx/**'] - pull_request: - branches: ['**'] - paths: ['examples/xxx/**'] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains(github.ref, 'main')}} - -jobs: - test-native: - name: Test React Native CLI - 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 Example - run: yarn --cwd examples/native-cli install - - - name: Validate TypeScript - run: yarn --cwd examples/native-cli typecheck - - - name: Validate ESLint - run: yarn --cwd examples/native-cli lint - - - name: Run tests - run: yarn --cwd examples/native-cli test - - - name: Run perf tests - run: cd examples/native-cli && ./reassure-tests.sh - - - name: Run Danger.js - run: yarn --cwd examples/native-cli danger ci --id native - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - test-native-expo: - name: Test React Native Expo - 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 Example - run: yarn --cwd examples/native-expo install - - - name: Validate TypeScript - run: yarn --cwd examples/native-expo typecheck - - - name: Run tests - run: yarn --cwd examples/native-expo test - - - name: Run perf tests - run: cd examples/native-expo && ./reassure-tests.sh - - - name: Run Danger.js - run: yarn --cwd examples/native-expo danger ci --id native-expo - 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 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 --cwd examples/web-vite danger ci --id web-vite - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - test-web-nextjs: - name: Test Next.js - 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 Example - run: yarn --cwd examples/web-nextjs install - - - name: Validate ESLint - run: yarn --cwd examples/web-nextjs lint - - - name: Run tests - run: yarn --cwd examples/web-nextjs test - - - name: Run perf tests - run: cd examples/web-nextjs && ./reassure-tests.sh - - - name: Run Danger.js - run: yarn --cwd examples/web-nextjs danger ci --id web-nextjs - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}