Skip to content

Commit 6449d93

Browse files
committed
upgrade github wworflow
1 parent 3f5f2bb commit 6449d93

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- run: yarn
16-
- run: yarn lint
17-
- uses: gozala/[email protected]
18-
# - run: yarn build
19-
- run: yarn aegir dep-check
15+
- run: npm install
16+
- run: npx aegir lint
17+
- run: npx aegir ts -p check
18+
# or
19+
# - uses: gozala/[email protected]
20+
# - run: npx aegir build
21+
- run: npx aegir dep-check
2022
# - uses: ipfs/aegir/actions/bundle-size@master
21-
# name: size
2223
# with:
2324
# github_token: ${{ secrets.GITHUB_TOKEN }}
2425
test-node:
@@ -34,34 +35,45 @@ jobs:
3435
- uses: actions/setup-node@v1
3536
with:
3637
node-version: ${{ matrix.node }}
37-
- run: yarn
38-
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
38+
- run: npm install
39+
- run: npx aegir test -t node --bail --cov
3940
- uses: codecov/codecov-action@v1
4041
test-chrome:
4142
needs: check
4243
runs-on: ubuntu-latest
4344
steps:
4445
- uses: actions/checkout@v2
45-
- run: yarn
46-
- run: npx aegir test -t browser -t webworker --bail
46+
- uses: microsoft/playwright-github-action@v1
47+
- run: npm install
48+
- run: npx aegir test -t browser -t webworker --bail --cov
49+
- uses: codecov/codecov-action@v1
4750
test-firefox:
4851
needs: check
4952
runs-on: ubuntu-latest
5053
steps:
5154
- uses: actions/checkout@v2
52-
- run: yarn
53-
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
55+
- uses: microsoft/playwright-github-action@v1
56+
- run: npm install
57+
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
58+
test-webkit:
59+
needs: check
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v2
63+
- uses: microsoft/playwright-github-action@v1
64+
- run: npm install
65+
- run: npx aegir test -t browser -t webworker --bail -- --browser webkit
5466
test-electron-main:
5567
needs: check
5668
runs-on: ubuntu-latest
5769
steps:
5870
- uses: actions/checkout@v2
59-
- run: yarn
71+
- run: npm install
6072
- run: npx xvfb-maybe aegir test -t electron-main --bail
6173
test-electron-renderer:
6274
needs: check
6375
runs-on: ubuntu-latest
6476
steps:
6577
- uses: actions/checkout@v2
66-
- run: yarn
78+
- run: npm install
6779
- run: npx xvfb-maybe aegir test -t electron-renderer --bail

0 commit comments

Comments
 (0)