Skip to content

Commit 63edf01

Browse files
authoredSep 9, 2021
chore: switch to esm (#370)
BREAKING CHANGE: uses named exports only
1 parent 0a08449 commit 63edf01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+451
-617
lines changed
 

‎.aegir.js renamed to ‎.aegir.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict'
2-
const path = require('path')
32

43
/** @type {import('aegir').Options["build"]["config"]} */
54
const esbuild = {

‎.github/workflows/main.yml

+39-44
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@ on:
33
push:
44
branches:
55
- master
6-
- 'release/**'
76
pull_request:
87
branches:
98
- master
10-
- 'release/**'
119

1210
jobs:
1311
check:
1412
runs-on: ubuntu-latest
1513
steps:
1614
- uses: actions/checkout@v2
1715
- run: npm install
18-
- run: npx aegir lint
19-
- run: npx aegir build
20-
- run: npx aegir dep-check
21-
- uses: ipfs/aegir/actions/bundle-size@master
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
- run: npm run build
17+
- run: npm run lint
18+
- run: npm run dep-check
2419
test-node:
2520
needs: check
2621
runs-on: ${{ matrix.os }}
22+
name: Test ${{ matrix.project }} node
2723
strategy:
2824
matrix:
2925
os: [windows-latest, ubuntu-latest, macos-latest]
@@ -35,44 +31,43 @@ jobs:
3531
with:
3632
node-version: ${{ matrix.node }}
3733
- run: npm install
38-
- run: npx aegir test -t node --bail --cov
39-
- uses: codecov/codecov-action@v1
40-
test-chrome:
41-
needs: check
42-
runs-on: ubuntu-latest
43-
steps:
44-
- uses: actions/checkout@v2
45-
- uses: microsoft/playwright-github-action@v1
46-
- run: npm install
47-
- run: npx aegir test -t browser -t webworker --bail
48-
- uses: codecov/codecov-action@v1
49-
test-firefox:
50-
needs: check
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@v2
54-
- uses: microsoft/playwright-github-action@v1
55-
- run: npm install
56-
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox
57-
test-webkit:
58-
needs: check
59-
runs-on: ubuntu-latest
60-
steps:
61-
- uses: actions/checkout@v2
62-
- uses: microsoft/playwright-github-action@v1
63-
- run: npm install
64-
- run: npx aegir test -t browser -t webworker --bail --timeout 10000 -- --browser webkit
65-
test-electron-main:
66-
needs: check
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v2
70-
- run: npm install
71-
- run: npx xvfb-maybe aegir test -t electron-main --bail
72-
test-electron-renderer:
34+
- run: npm run test --cov -t node -- --exit
35+
test-browser:
7336
needs: check
7437
runs-on: ubuntu-latest
38+
name: test ${{ matrix.browser }} ${{ matrix.type }}
39+
strategy:
40+
matrix:
41+
browser:
42+
- chromium
43+
- firefox
44+
type:
45+
- browser
46+
- webworker
47+
fail-fast: true
7548
steps:
7649
- uses: actions/checkout@v2
50+
- uses: actions/setup-node@v1
51+
with:
52+
node-version: 16
7753
- run: npm install
78-
- run: npx xvfb-maybe aegir test -t electron-renderer --bail
54+
- run: npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
55+
test-electron:
56+
needs: check
57+
runs-on: ubuntu-latest
58+
name: test ${{ matrix.type }}
59+
strategy:
60+
matrix:
61+
type:
62+
- electron-main
63+
- electron-renderer
64+
fail-fast: true
65+
steps:
66+
- uses: actions/checkout@v2
67+
- uses: actions/setup-node@v1
68+
with:
69+
node-version: 16
70+
- run: npm install
71+
- uses: GabrielBB/xvfb-action@v1
72+
with:
73+
run: npm run test -- -t ${{ matrix.type }} --bail --exit

0 commit comments

Comments
 (0)
Please sign in to comment.