Skip to content

Commit 1ffbc14

Browse files
committed
ci: splits up multi-platform build and runs builds sequentially to avoid blowing up
1 parent 904f1fd commit 1ffbc14

File tree

4 files changed

+57
-5
lines changed

4 files changed

+57
-5
lines changed

.github/workflows/multi-platform.yml renamed to .github/workflows/linux.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ jobs:
1010
all:
1111
strategy:
1212
matrix:
13-
os:
14-
- ubuntu-latest
15-
- macos-latest
16-
- windows-latest
13+
os: [ubuntu-latest]
1714
node-version: [10.x, 12.x, 14.x, 15.x]
1815

1916
runs-on: ${{ matrix.os }}
@@ -27,3 +24,4 @@ jobs:
2724
- run: yarn build
2825
- run: yarn test --testTimeout 20000
2926
env: { CI: 1 }
27+

.github/workflows/macos.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: multi-platform
2+
3+
on:
4+
push:
5+
branches: 'master'
6+
7+
jobs:
8+
# for master, we test Linux & Windows & MacOS + Node LTS & Latest
9+
# note that we don't do linting here, only on Linux + Node LTS
10+
all:
11+
strategy:
12+
matrix:
13+
os: [macos-latest]
14+
node-version: [10.x, 12.x, 14.x, 15.x]
15+
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- uses: bahmutov/npm-install@v1
23+
24+
- run: yarn build
25+
- run: yarn test --testTimeout 20000
26+
env: { CI: 1 }
27+

.github/workflows/windows.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: windows
2+
3+
on:
4+
push:
5+
branches: 'master'
6+
7+
jobs:
8+
# for master, we test Linux & Windows & MacOS + Node LTS & Latest
9+
# note that we don't do linting here, only on Linux + Node LTS
10+
all:
11+
strategy:
12+
matrix:
13+
os: [windows-latest]
14+
node-version: [10.x, 12.x, 14.x, 15.x]
15+
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- uses: bahmutov/npm-install@v1
23+
24+
- run: yarn build
25+
- run: yarn test --testTimeout 20000
26+
env: { CI: 1 }
27+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"exec:all": "lerna exec",
2020
"run:all": "lerna run --stream",
21-
"build": "yarn run:all build",
21+
"build": "lerna run build",
2222
"clean": "yarn run:all clean",
2323
"test": "lerna run test -- --passWithNoTests",
2424
"lint": "yarn run:all lint",

0 commit comments

Comments
 (0)