forked from neo-project/neo
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.19 KB
/
test_plugins.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
name: Validate neo-modules Compilation with Local neo
on:
push:
branches: [check]
workflow_dispatch:
inputs:
ref:
description: 'Ref to build neo-modules [default: latest master;]'
required: false
default: 'neo-project/neo-modules'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout neo
uses: actions/checkout@v2
with:
path: ./neo
- name: Checkout neo-modules
uses: actions/checkout@v2
with:
# repository: neo-project/neo-modules
# path: ./neo-modules
ref: ${{ github.event.inputs.ref }}
- name: Patch neo-modules Directory.Build.props to use local neo
run: |
props_path="./neo-modules/src/Directory.Build.props"
sed -i '/<PackageReference Include="Neo"/d' $props_path
sed -i '/<\/ItemGroup>/i \ <ProjectReference Include="../../../neo/src/Neo/Neo.csproj" />' $props_path
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x'
- name: Test neo-modules
run: |
sudo apt-get --assume-yes install libleveldb-dev libsnappy-dev libc6-dev
cd neo-modules/
dotnet test