-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (64 loc) · 2.1 KB
/
blockchain-contracts.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: blockchain/contracts
on:
workflow_dispatch: {}
workflow_call:
push:
paths:
- blockchain/contracts/**
- .github/workflows/blockchain-contracts.yml
- scripts/github/**
branches:
- master
- develop
- datil
env:
IPFS_API_KEY: ${{ secrets.IPFS_API_KEY }}
defaults:
run:
shell: bash
working-directory: blockchain/contracts
jobs:
test_deployment_tool:
runs-on: warp-ubuntu-latest-x64-8x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: buildjet/setup-node@v3
with:
node-version: 18.17.0
cache: npm
cache-dependency-path: ${{ github.workspace }}/blockchain/contracts/package-lock.json
- name: Install dependencies
run: npm install
- name: Test deployment tool
run: npm run deploy -- --deploy-config scripts/deployConfig/configs/ci-config.json --verbose
services:
anvil:
image: litptcl/anvil-lit:latest
ports:
- 8545:8545
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
test_contracts:
runs-on: warp-ubuntu-latest-x64-8x # change to LargeRunner to run on github. Change to self-hosted to run on our own runner. Change to buildjet-8vcpu-ubuntu-2204 to run on buildjet with 8 cpus
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: buildjet/setup-node@v3
with:
node-version: 18.17.0
cache: npm
cache-dependency-path: ${{ github.workspace }}/blockchain/contracts/package-lock.json
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:ci
services:
anvil:
image: litptcl/anvil-lit:latest
ports:
- 8545:8545
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}