Skip to content

Commit

Permalink
test: add react v18 test
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Jan 12, 2025
1 parent c0f0f34 commit 9322b44
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-smoke.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Smoke Tests
name: Smoke Test

on:
workflow_dispatch:
Expand All @@ -15,7 +15,7 @@ on:
jobs:
validate:
runs-on: ubuntu-latest
name: Smoke Tests
name: Smoke Test

steps:
- name: Checkout Commit
Expand Down Expand Up @@ -66,4 +66,4 @@ jobs:
# We'll need that for the preview tests below
run: |
pnpm i
moon test-smoke:run.ci
moon test-smoke:run.ci.18
67 changes: 67 additions & 0 deletions .github/workflows/test-v18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Run Tests

on:
workflow_dispatch:
pull_request:
types:
- edited
- opened
- synchronize
push:
branches:
- '*'
- '!main'

jobs:
validate:
runs-on: ubuntu-latest
name: Run Tests

steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 10

# Needed for https://github.com/moonrepo/moon/issues/1060
- name: Force Update Main
run: |
git fetch origin
git branch -f main origin/main
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm config set script-shell "/usr/bin/bash"
- name: Setup Moon
uses: moonrepo/setup-toolchain@v0

- name: Sanity Check
run: |
echo git `git version`;
echo branch `git branch --show-current`;
echo node `node -v`;
echo pnpm `pnpm -v`
echo `moon --version`
- name: pnpm install
run: pnpm install --frozen-lockfile

- name: Build Projects
run: |
moon jsx-email:build
moon create-jsx-email:build
moon run :build --query "project~plugin-*"
- name: Package Tests
env:
FORCE_COLOR: 1
run: moon run :test --affected --concurrency 1 --remote
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
- name: pnpm install
run: pnpm install --frozen-lockfile

- name: Install React v18
run: |
cd packages/jsx-email
pnpm add react@^18
cd ../create-jsx-email
pnpm add react@^18
- name: Build Projects
run: |
moon jsx-email:build
Expand Down

0 comments on commit 9322b44

Please sign in to comment.