Skip to content

Commit

Permalink
Merge pull request #97 from dolittle/7.0.0-meriadoc
Browse files Browse the repository at this point in the history
Meriadoc: Unbreak event horizon contracts
  • Loading branch information
jakhog authored Mar 22, 2022
2 parents 8988576 + bffd155 commit 0517ca9
Show file tree
Hide file tree
Showing 67 changed files with 225 additions and 779 deletions.
51 changes: 12 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ jobs:
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/CSharp/Fundamentals/VersionInfo.cs
Generation/CSharp/Runtime/VersionInfo.cs
Generation/CSharp/VersionInfo.cs
- run: dotnet build -c Release
working-directory: ./Generation/CSharp

Expand All @@ -73,16 +72,9 @@ jobs:
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/JavaScript/Fundamentals/VersionInfo.js
Generation/JavaScript/Runtime/VersionInfo.js
- name: Build
working-directory: ./Generation/JavaScript/Build
run: yarn build
- name: Build Fundamentals
working-directory: ./Generation/JavaScript/Fundamentals
run: yarn build
- name: Build Runtime
working-directory: ./Generation/JavaScript/Runtime
Generation/JavaScript/VersionInfo.js
- name: Build Contracts
working-directory: ./Generation/JavaScript
run: yarn build

golang-build:
Expand Down Expand Up @@ -146,8 +138,7 @@ jobs:
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/CSharp/Fundamentals/VersionInfo.cs
Generation/CSharp/Runtime/VersionInfo.cs
Generation/CSharp/VersionInfo.cs
- run: dotnet build
working-directory: ./Generation/CSharp
- name: Create packages
Expand Down Expand Up @@ -176,39 +167,21 @@ jobs:
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/JavaScript/Fundamentals/VersionInfo.js
Generation/JavaScript/Runtime/VersionInfo.js
- name: Build
working-directory: ./Generation/JavaScript/Build
run: yarn build
- name: Build Fundamentals
working-directory: ./Generation/JavaScript/Fundamentals
run: yarn build
- name: Update Fundamentals version
working-directory: ./Generation/JavaScript/Fundamentals
run: npm version ${{ needs.context.outputs.version }}
- name: Build Runtime
working-directory: ./Generation/JavaScript/Runtime
Generation/JavaScript/VersionInfo.js
- name: Build Contracts
working-directory: ./Generation/JavaScript
run: yarn build
- name: Add Fundamentals as dependency of Runtime
working-directory: ./Generation/JavaScript/Runtime
run: jq '.dependencies["@dolittle/contracts"] = "${{ needs.context.outputs.version }}"' package.json > package.json.tmp && mv package.json.tmp package.json
- name: Update Runtime version
working-directory: ./Generation/JavaScript/Runtime
- name: Update Contracts version
working-directory: ./Generation/JavaScript
run: npm version ${{ needs.context.outputs.version }}
- name: Extract tag from version
uses: actions-ecosystem/action-regex-match@v2
id: tag_regex
with:
text: ${{ needs.context.outputs.version }}
regex: '^\d+\.\d+.\d+-([^.]+)\.\d+$'
- name: Publish Fundamentals
working-directory: ./Generation/JavaScript/Fundamentals
run: npm publish --tag ${{ needs.context.outputs.release-type == 'prerelease' && steps.tag_regex.outputs.group1 || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish Runtime
working-directory: ./Generation/JavaScript/Runtime
- name: Publish Contracts
working-directory: ./Generation/JavaScript
run: npm publish --tag ${{ needs.context.outputs.release-type == 'prerelease' && steps.tag_regex.outputs.group1 || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
23 changes: 13 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,22 @@ MigrationBackup/

yarn.lock
package-json.lock
*.cs
*.ts
!Generation/JavaScript/Build/*.ts
Generation/JavaScript/Build/Distribution

!Source/**/Artifacts
# CSharp
Artifacts/
Generation/CSharp/**/*.cs
!Generation/CSharp/Contracts.csproj
!Generation/CSharp/VersionInfo.cs

Generation/JavaScript/Fundamentals/**
Generation/JavaScript/Runtime/**
!Generation/JavaScript/**/package.json
!Generation/JavaScript/**/tsconfig.json
# JavaScript
Generation/JavaScript/**/*.js
Generation/JavaScript/**/*.d.ts
!Generation/JavaScript/package.json
!Generation/JavaScript/VersionInfo.d.ts
!Generation/JavaScript/VersionInfo.js

# Go
Generation/Go/*
!Generation/Go/generate.sh

Generation/Artifacts
!Source/Artifacts
29 changes: 29 additions & 0 deletions Generation/CSharp/Contracts.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Dolittle.Contracts</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeSource>True</IncludeSource>
<Protobuf_NoWarnMissingExpected>True</Protobuf_NoWarnMissingExpected>
<Protobuf_TouchMissingExpected>True</Protobuf_TouchMissingExpected>
<DocumentationFile>bin/$(Configuration)/$(TargetFramework)/$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dolittle.Common" Version="2.*" PrivateAssets="All"/>
<PackageReference Include="Google.Protobuf" Version="3.18.1" />
<PackageReference Include="Google.Protobuf.Tools" Version="3.19.4" PrivateAssets="All"/>
<PackageReference Include="Grpc.Tools" Version="2.43.0" PrivateAssets="All"/>
<PackageReference Include="Grpc.Core.Api" Version="2.43.0" />
</ItemGroup>

<ItemGroup>
<Protobuf Include="../../Source/**/*.proto" ProtoRoot="../../Source" OutputDir="%(RecursiveDir)" GrpcServices="Both" />
</ItemGroup>

<Target Name="DeleteSourceFiles" BeforeTargets="BeforeBuild">
<ItemGroup>
<FilesToDelete Include="**/*.cs" Exclude="VersionInfo.cs"/>
</ItemGroup>
<Delete Files="@(FilesToDelete)"/>
</Target>
</Project>
48 changes: 0 additions & 48 deletions Generation/CSharp/Contracts.sln

This file was deleted.

13 changes: 0 additions & 13 deletions Generation/CSharp/Fundamentals/Fundamentals.csproj

This file was deleted.

17 changes: 0 additions & 17 deletions Generation/CSharp/Runtime/Runtime.csproj

This file was deleted.

26 changes: 0 additions & 26 deletions Generation/CSharp/Runtime/VersionInfo.cs

This file was deleted.

File renamed without changes.
24 changes: 0 additions & 24 deletions Generation/JavaScript/Build/Compilers.ts

This file was deleted.

13 changes: 0 additions & 13 deletions Generation/JavaScript/Build/GenerateOptions.ts

This file was deleted.

7 changes: 0 additions & 7 deletions Generation/JavaScript/Build/GenerationTarget.ts

This file was deleted.

Loading

0 comments on commit 0517ca9

Please sign in to comment.