UNPKG

3.25 kBYAMLView Raw
1name: Test Edge Paths
2
3on: [push]
4
5jobs:
6 build-ununtu:
7 runs-on: ${{ matrix.os }}
8 strategy:
9 matrix:
10 os:
11 - ubuntu-latest
12 node_version:
13 - 12
14 - 14
15 architecture:
16 - x64
17 name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
18 steps:
19 - uses: actions/checkout@v2
20 - name: Setup node
21 uses: actions/setup-node@v2
22 with:
23 node-version: ${{ matrix.node_version }}
24 architecture: ${{ matrix.architecture }}
25 - run: curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
26 - run: sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
27 - run: sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
28 - run: sudo rm microsoft.gpg
29 - run: sudo apt update
30 - run: sudo apt install microsoft-edge-dev
31 - run: npm install
32 - run: node tests/index.js
33
34 build-macos:
35 runs-on: ${{ matrix.os }}
36 strategy:
37 matrix:
38 os:
39 - macos-latest
40 node_version:
41 - 12
42 - 14
43 name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
44 steps:
45 - uses: actions/checkout@v2
46 - name: Setup node
47 uses: actions/setup-node@v2
48 with:
49 node-version: ${{ matrix.node_version }}
50 architecture: ${{ matrix.architecture }}
51 - run: npm install
52 - run: wget -O beta.pkg https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdgeBeta-88.0.705.29.pkg?platform=Mac&Consent=0&channel=Beta
53 - run: wget -O dev.pkg https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdgeDev-89.0.752.1.pkg?platform=Mac&Consent=0&channel=Dev
54 - run: wget -O canary.pkg https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdgeCanary-89.0.760.0.pkg?platform=Mac&Consent=0&channel=Canary
55 - run: wget -O stable.pkg https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-87.0.664.75.pkg?platform=Mac&Consent=0&channel=Stable
56 - run: sudo installer -allowUntrusted -pkg canary.pkg -target /
57 - run: sudo installer -allowUntrusted -pkg dev.pkg -target /
58 - run: sudo installer -allowUntrusted -pkg beta.pkg -target /
59 - run: sudo installer -allowUntrusted -pkg stable.pkg -target /
60 - run: node tests/index.js
61
62 # build-window:
63 # runs-on: ${{ matrix.os }}
64 # strategy:
65 # matrix:
66 # os:
67 # - windows-latest
68 # node_version:
69 # - 12
70 # - 14
71 # name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
72 # steps:
73 # - uses: actions/checkout@v2
74 # - name: Setup node
75 # uses: actions/setup-node@v2
76 # with:
77 # node-version: ${{ matrix.node_version }}
78 # architecture: ${{ matrix.architecture }}
79 # - run: npm install
80 # - run: node tests/index.js