-
Notifications
You must be signed in to change notification settings - Fork 35
63 lines (60 loc) · 1.49 KB
/
test_ipfs_connection.yml
File metadata and controls
63 lines (60 loc) · 1.49 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
name: Test IPFS connection
on:
# push:
# branches:
# - main
# paths: "*.json"
# pull_request:
# branches:
# - main
# paths: "*.json"
workflow_dispatch:
inputs:
environment:
description: 'Environment name (one of: dev-unstable, testnet-clay, mainnet)'
required: true
jobs:
test_automated:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- env: dev-unstable
- env: testnet-clay
- env: mainnet
env:
JEST_CERAMIC_NETWORK: ${{ matrix.env }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: List changed files
id: changed-files
uses: tj-actions/changed-files@v11.5
with:
files: |
dev-unstable.json
testnet-clay.json
mainnet.json
- name: Run test (automated)
if: contains(steps.changed-files.outputs.modified_files, "${{ matrix.env }}.json")
run: |
cd ./test
npm ci
npm run test
test_manual:
runs-on: ubuntu-18.04
env:
JEST_CERAMIC_NETWORK: ${{ github.event.inputs.environment }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Run test (manual)
if: ${{ github.event.inputs.environment != '' }}
run: |
cd ./test
npm ci
npm run test