-
Notifications
You must be signed in to change notification settings - Fork 122
44 lines (35 loc) · 1.02 KB
/
tests-jellyfish.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
name: Tests - JellyfishSDK
on:
workflow_dispatch:
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
BUILD_VERSION: latest # Computed
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: JellyfishSDK/jellyfish
ref: 'main'
- uses: actions/checkout@v3
with:
path: defichain
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Populate environment
run: cd defichain && GIT_VERSION=1 ./make.sh ci-export-vars
- name: Build and setup
run: "cd defichain && docker build -t test-build-container
-f ./contrib/dockerfiles/x86_64-pc-linux-gnu.dockerfile ."
- name: Run tests
run: |
npm ci
DEFICHAIN_DOCKER_IMAGE=test-build-container npm run ci:test -- --testTimeout=600000