This commit is contained in:
parent
96c203f842
commit
5b40b45bfa
15
.gitea/workflows/test.yml
Normal file
15
.gitea/workflows/test.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: Run the JSON parser tests
|
||||||
|
run-name: ${{ gitea.actor }} triggered a test for the Json.Parser
|
||||||
|
on: [ push ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: gitea.ref == 'refs/heads/develop'
|
||||||
|
steps:
|
||||||
|
- uses: https://github.com/actions/checkout@v4
|
||||||
|
- uses: https://github.com/actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.x'
|
||||||
|
- name: "Run tests"
|
||||||
|
run: dotnet test
|
@ -1,20 +0,0 @@
|
|||||||
name: Run the JSON parser tests
|
|
||||||
run-name: ${{ gitea.actor }} triggered a test for the Json.Parser
|
|
||||||
on: [ push ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: gitea.ref == 'refs/heads/develop'
|
|
||||||
steps:
|
|
||||||
- uses: https://github.com/actions/checkout@v4
|
|
||||||
- uses: https://github.com/actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.x'
|
|
||||||
- name: "Reference MycroForge.Core in MycroForge.PluginTemplate"
|
|
||||||
# The MycroForge.PluginTemplate project references MycroForge.Core as a package and not as a reference.
|
|
||||||
# This allows the 'm4g plugin init' command to pull in the core package from a package repository.
|
|
||||||
# To prevent the test command from trying to pull from the package repository, we reference the local project.
|
|
||||||
run: dotnet add MycroForge.PluginTemplate reference MycroForge.Core
|
|
||||||
- name: "Run Json.Parser.Tests"
|
|
||||||
run: dotnet test
|
|
Loading…
Reference in New Issue
Block a user