From 1ffcfa57160d778469df1662a8bc2a1e848e68ee Mon Sep 17 00:00:00 2001 From: Jinghui Liao Date: Fri, 13 Oct 2023 20:42:37 +0800 Subject: [PATCH] fix --- .github/workflows/test_plugins.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test_plugins.yml b/.github/workflows/test_plugins.yml index 2b5b8eaa9c..98e5c02abb 100644 --- a/.github/workflows/test_plugins.yml +++ b/.github/workflows/test_plugins.yml @@ -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: @@ -31,6 +25,7 @@ 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: | @@ -38,11 +33,14 @@ jobs: sed -i '//i \ ' $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 +