This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate neo-modules Compilation with Local neo | |
on: | |
push: | |
branches: [check] | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
name: | |
# Friendly description to be shown in the UI instead of 'name' | |
description: 'Person to greet' | |
# Default value if no value is explicitly provided | |
default: 'World' | |
# Input has to be provided for the workflow to run | |
required: true | |
# The data type of the input | |
type: string | |
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 | |
- 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: Install dependencies | |
run: | | |
sudo apt-get --assume-yes install libleveldb-dev libsnappy-dev libc6-dev | |
- name: Test neo-modules | |
run: | | |
cd neo-modules/ | |
dotnet test |