Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 6 additions & 19 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
### Description
<!--- Describe your changes in detail -->
<!--- Why is this change required? What problem does it solve? -->
**Is your pull request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you've done**
Key points of your tech and arch decisions.

### Related Issues
<!--- If it fixes an open issue, please link to the issue here. -->


### References
<!--- References would be helpful to understand the changes. -->
<!--- References can be books, links, etc. -->


### Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] I have followed the [contribution guidelines](../CONTRIBUTING.md) and code style for this project.
- [ ] I have added tests covering my contributions.
- [ ] I have updated the documentation accordingly.
- [ ] I have added corresponding labels with respect to the part of the interpreter i've worked on.
**Related Issues**
If it fixes an open issue, please link to the issue here.
5 changes: 4 additions & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ jobs:
run: dotnet test -c Debug --no-build -v n --filter-trait Category=Unit
- name: Integration Tests
run: |
dotnet test --project tests/HydraScript.IntegrationTests -c Debug --no-build -v n --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
dotnet test --project tests/HydraScript.IntegrationTests `
-c Debug --no-build -v n `
--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml `
--coverage-settings tests/coverage-exclude.xml
mkdir coverage-report
- name: Code Coverage Summary Report For Merge Request
if: github.event_name == 'pull_request'
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
permissions:
contents: write
issues: write
actions: write

jobs:
create-release:
Expand Down Expand Up @@ -85,6 +86,8 @@ jobs:
name: Publish release
runs-on: ubuntu-latest
needs: upload-release-assets
outputs:
determined_version: ${{ needs.upload-release-assets.outputs.determined_version }}
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v5
Expand All @@ -103,4 +106,24 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'Stepami/hydrascript'
milestone: ${{ needs.upload-release-assets.outputs.determined_version }}
milestone: ${{ needs.upload-release-assets.outputs.determined_version }}

publish-nuget:
name: Publish as dotnet tool to NuGet
runs-on: windows-latest
needs: publish-release
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build
run: dotnet build ./src/HydraScript/HydraScript.csproj -c Release -v n `
/p:Version=${{ needs.publish-release.outputs.determined_version }} `
/p:PublishAot=false /p:PublishSingleFile=false
- name: Publish
run: dotnet nuget push ./src/HydraScript/bin/Release/*.nupkg `
--api-key ${{ secrets.NUGET_API_KEY }} `
--source https://api.nuget.org/v3/index.json
7 changes: 6 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
<BuildInParallel>false</BuildInParallel>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<OptimizationPreference>Size</OptimizationPreference>
<InvariantGlobalization>true</InvariantGlobalization>
<StackTraceSupport>false</StackTraceSupport>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
</PropertyGroup>

<PropertyGroup>
Expand Down
15 changes: 8 additions & 7 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.6" />
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
<PackageVersion Include="EnvironmentAbstractions" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="10.0.0" />
<PackageVersion Include="System.CommandLine" Version="2.0.0" />
<PackageVersion Include="System.IO.Abstractions" Version="22.0.16" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.1" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.1" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.1" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="10.0.1" />
<PackageVersion Include="System.CommandLine" Version="2.0.1" />
<PackageVersion Include="System.IO.Abstractions" Version="22.1.0" />
<PackageVersion Include="Visitor.NET" Version="4.2.0" />
<PackageVersion Include="Visitor.NET.AutoVisitableGen" Version="1.5.2" />
<PackageVersion Include="ZLinq" Version="1.5.4" />
Expand Down
4 changes: 3 additions & 1 deletion ExtendedJavaScriptSubset.slnx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Solution>
<Folder Name="/Benchmarks/">
<Project Path="benchmarks\HydraScript.Benchmarks\HydraScript.Benchmarks.csproj" Type="C#" />
<Project Path="benchmarks\HydraScript.Benchmarks\HydraScript.Benchmarks.csproj" />
<File Path="benchmarks\Readme.md" />
</Folder>
<Folder Name="/SolutionItems/">
Expand Down Expand Up @@ -28,6 +28,7 @@
<File Path=".github/workflows/release.yml" />
</Folder>
<Folder Name="/Src/">
<File Path="src/Directory.Build.props" />
<Project Path="src/HydraScript/HydraScript.csproj" />
</Folder>
<Folder Name="/Src/Application/">
Expand All @@ -48,6 +49,7 @@
<Project Path="tests/HydraScript.Infrastructure.LexerRegexGenerator.UnitTests/HydraScript.Infrastructure.LexerRegexGenerator.UnitTests.csproj" />
<Project Path="tests/HydraScript.IntegrationTests/HydraScript.IntegrationTests.csproj" />
<Project Path="tests/HydraScript.UnitTests/HydraScript.UnitTests.csproj" />
<File Path="tests/coverage-exclude.xml" />
<File Path="tests/Directory.Build.props" />
<File Path="tests/Directory.Packages.props" />
</Folder>
Expand Down
Loading