-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (33 loc) · 930 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Node CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install Packages
run: |
npm install -g @ramlmn/[email protected]
npm install -g [email protected]
- name: Setup Chrome for Lighthouse
run: |
export CHROME_PATH="$(pwd)/chrome-linux/chrome"
npm explore -g lighthouse -- ./lighthouse-core/scripts/download-chrome.sh
mv "$(npm root -g)/lighthouse/chrome-linux" ./
echo "Using $($CHROME_PATH --version)"
- name: Run Tests
run: |
./test/runtest.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: lighthouse-logs
path: ./lighthouse-log.json
- name: Results
run: |
./test/checklog.js ./lighthouse-log.json
env:
CI: true