-
Notifications
You must be signed in to change notification settings - Fork 54
51 lines (44 loc) · 1.03 KB
/
test-cli.yml
File metadata and controls
51 lines (44 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CLI Tests
on:
workflow_dispatch:
pull_request:
types:
- edited
- opened
- synchronize
push:
branches:
- '*'
- '!main'
jobs:
validate:
name: CLI Tests
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Checkout Main
run: |
git fetch origin
git branch -f main origin/main
- name: Setup
uses: ./.github/actions/setup
- name: Build Projects
run: |
moon jsx-email:build
moon create-jsx-email:build
moon run :build --query "project~plugin-*"
- name: Run Tests
# Note: We're running `pnpm i` again so that pnpm places the `email` bin in root node_modules
# We'll need that for the preview tests below
run: |
pnpm i
moon test-cli:test.run