Skip to content

Commit

Permalink
Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
beakona committed Jan 28, 2024
1 parent 83080f9 commit 148c707
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -64,7 +64,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -81,6 +81,6 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
Expand All @@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Pack
Expand All @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Download Artifact
Expand Down
35 changes: 14 additions & 21 deletions AutoInterfaceSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,28 @@ public static void Main()
//int g = 1;
//p.Method(1, out f, ref g, "t", 1, 2, 3);

IPrintableComplex p = new Person2();
IPrintable p = new MyPrinter();
//var c = p.Count;
p.Count = 3;
//p.Print();
//Count = 3;
p.Print();
//p.PrintComplex();
}
}

interface IPrintableComplex
public interface IPrintable
{
void Print();
void PrintComplex();
int Count { set; }
public void Print();
}

public class SimplePrinter // : IPrintableComplex
public class SimplePrinter : IPrintable
{
public void Print() { Console.WriteLine("OK"); }
public void PrintComplex() { Console.WriteLine("OKC"); }
public int Count
{
get
{
return 0;
}
set
{
}
}
}

public partial class MyPrinter : IPrintable
{
[BeaKona.AutoInterface]
private readonly IPrintable _simplePrinter = new SimplePrinter();
}

public partial class Person2 /*: IPrintableComplex*/
Expand All @@ -51,8 +44,8 @@ public partial class Person2 /*: IPrintableComplex*/
//[BeaKona.AutoInterface(typeof(IPrintableComplex), AllowMissingMembers = true, MemberMatch = BeaKona.MemberMatchTypes.Explicit)]
//private readonly SimplePrinter aspect2 = new SimplePrinter();

[BeaKona.AutoInterface(typeof(IPrintableComplex), AllowMissingMembers = true)]
private readonly SimplePrinter aspect3 = new SimplePrinter();
//[BeaKona.AutoInterface(typeof(IPrintableComplex), AllowMissingMembers = true)]
//private readonly SimplePrinter aspect3 = new SimplePrinter();

//[BeaKona.AutoInterface(typeof(IPrintableComplex), AllowMissingMembers = true, MemberMatch = BeaKona.MemberMatchTypes.Any)]
//private readonly SimplePrinter aspect4 = new SimplePrinter();
Expand Down

0 comments on commit 148c707

Please sign in to comment.