Skip to content

Publishing Messaging nuget packages and some related CI streamlining #2192

Publishing Messaging nuget packages and some related CI streamlining

Publishing Messaging nuget packages and some related CI streamlining #2192

# Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
# This workflow will do a clean install of node dependencies, build the source code and run tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
workflow_dispatch:
permissions:
contents: read
name: CI
jobs:
build:
env:
COMPOSEUI_SKIP_DOWNLOAD: 'true'
DOTNET_CONSOLE_ANSI_COLOR: 'true'
runs-on: windows-latest
strategy:
matrix:

Check failure on line 25 in .github/workflows/continuous-integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/continuous-integration.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
dotnet-version: [ ${{ vars.DOTNET_VERSION }} ]
node-version: [ ${{ vars.NODE_VERSION }} ]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
COMPOSEUI_SKIP_DOWNLOAD: ${{env.COMPOSEUI_SKIP_DOWNLOAD}}
- name: Install NPM dependencies
run: npm ci
- name: Build JavaScript
run: npx lerna run build
- name: Test JavaScript
run: npx lerna run test
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install NuGet dependencies
run: |
powershell ./build/dotnet-restore.ps1
- name: Build .NET
run: |
powershell ./build/dotnet-build.ps1
- name: Test .NET
run: |
powershell ./build/dotnet-test.ps1
- name: Codecov
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack .NET
run: |
powershell ./build/dotnet-pack.ps1
- name: Upload Artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: packages
path: ${{ github.workspace }}/packages
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: shell-binaries
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/