forked from liquality/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.83 KB
/
Copy pathpullrequests.yml
File metadata and controls
65 lines (57 loc) · 1.83 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
on:
pull_request:
branches:
- dev
name: PullRequest tests
jobs:
pull_request_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- name: Build project
uses: actions/setup-node@v2.4.1
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
with:
node-version: '14'
# Create screenshots directory
- run: mkdir screenshots
- uses: actions/cache@v2.1.6
id: cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-node${{ env.node-version }}
- name: Set development manifest
run: |
jq --argjson icons "{\"16\": \"icons/dev/16x16.png\",\"48\": \"icons/dev/48x48.png\",\"128\": \"icons/dev/128x128.png\"}" '.icons = $icons | .browser_action.default_icon = $icons | .name = "Liquality Wallet - Dev"' ./src/manifest.json > ./src/manifest.tmp
mv ./src/manifest.tmp ./src/manifest.json
- name: Build Project
run: |
npm ci
npm run lint
npm run build
- name: Run Smoke tests againt PullRequest
uses: beemi/puppeteer-headful@v1.0.6
env:
CI: 'true'
DISPLAY: :99
SEED_WORDS: ${{ secrets.TEST_NET_SEED_WORDS }}
TWENTY_FOUR_SEEDS: ${{ secrets.TWENTY_FOUR_SEEDS }}
with:
args: npm run test:pullrequest:smoke
- name: Archive Mocha HTML report
uses: actions/upload-artifact@v2.2.4
if: always()
with:
name: mocha-html-test-report
path: mochawesome-report
- name: Save Screenshots
uses: actions/upload-artifact@v2.2.4
if: always()
with:
name: screenshots
path: screenshots
if-no-files-found: ignore