-
-
Notifications
You must be signed in to change notification settings - Fork 3
97 lines (97 loc) · 2.71 KB
/
build.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build
on:
push:
branches:
- master
pull_request:
env:
YARN_IGNORE_NODE: 1
jobs:
ci:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # , windows-latest]
node-version: [18, 20]
fail-fast: false # true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: yarn
- uses: moonrepo/tool-version-action@v1
with:
node: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn run setup
- run: yarn run moon --color --log debug ci
integrate:
name: Integrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
- run: yarn run setup
- run: cd scenarios/jest && yarn test
- run: cd scenarios/snowpack && yarn build
- run: cd scenarios/vite && yarn build
- run: cd scenarios/webpack && yarn build
compat:
name: Compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
- run: yarn run setup
- run: yarn run moon run :build
# - run: yarn ts-node --cwd ./tests --transpileOnly ./testPackemonImports.ts
- run: node ./tests/testPackemonImports.mjs
scaffold-mono:
name: Scaffold (monorepo)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
- run: yarn run setup
- run: mkdir ../work
- run: yarn packemon scaffold --packageManager npm --template monorepo ../work
- run: yarn packemon scaffold --packageManager npm --template monorepo-package ../work
# Test all the things
- run: cd ../work
- run: ls -R .
- run: yarn run moon check --all
scaffold-poly:
name: Scaffold (polyrepo)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install --immutable
- run: yarn run setup
- run: mkdir ../work
- run: yarn packemon scaffold --packageManager npm --template polyrepo ../work
- run: yarn packemon scaffold --packageManager npm --template polyrepo-package ../work
# Test all the things
- run: cd ../work
- run: ls -R .
- run: yarn run moon check --all