Skip to content

Commit 63e377a

Browse files
authored
Add CI support for macOS (conwnet#217)
* ci: add macos for github workflows * ci: add timeout when installing * ci: reduce timeout value when installing * ci: config the github token during the install
1 parent bb774ab commit 63e377a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
14-
1513
strategy:
1614
matrix:
1715
node-version: [14.x, 15.x]
16+
os: [ubuntu-latest, macos-latest]
17+
18+
runs-on: ${{ matrix.os }}
1819

1920
steps:
2021
- uses: actions/checkout@v2
@@ -34,7 +35,9 @@ jobs:
3435
restore-keys: |
3536
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ matrix.node-version }}
3637
37-
- run: yarn --frozen-lockfile
38+
- run: yarn --frozen-lockfile --network-timeout 500000
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3841
- run: yarn eslint
3942
- run: yarn build
4043
- uses: microsoft/playwright-github-action@v1

0 commit comments

Comments
 (0)