-
Notifications
You must be signed in to change notification settings - Fork 495
53 lines (47 loc) · 1.25 KB
/
nodejs.yml
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
name: Pullrequest build & test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Decrypt testWallets.json.gpg file
shell: bash
env:
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE_FOR_TESTS }}
run: >
./.github/scripts/decrypt_secret.sh
- name: npm install
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: build testnet for tests
run: |
npm run build:testnet-tests
- name: run e2e tests
run: |
mkdir ./tests/e2e/screenshots
npm run test:e2e:actions
- name: Upload failure screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: failure-screenshots
path: ./tests/e2e/screenshots
if-no-files-found: ignore
- name: Upload screenshots
uses: actions/upload-artifact@v4
with:
name: screenshots
path: ./tests/e2e/screenshots
if-no-files-found: ignore
env:
CI: true