Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim8y committed Oct 13, 2023
1 parent a71a215 commit 1ffcfa5
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/test_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@ 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
ref:
description: 'Ref to build neo-modules [default: latest master;]'
required: false
default: 'master'

jobs:
build-and-test:
Expand All @@ -31,18 +25,22 @@ jobs:
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: Install dependencies
run: |
sudo apt-get --assume-yes install libleveldb-dev libsnappy-dev libc6-dev
- 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

0 comments on commit 1ffcfa5

Please sign in to comment.