Skip to content

Commit

Permalink
chore: Remove Unnecessary Workflow (#251)
Browse files Browse the repository at this point in the history
* chore: Remove Unnecessary Workflow

* chore: Remove Unnecessary Workflow

* fix name
  • Loading branch information
kruplm authored Jul 7, 2023
1 parent 356408d commit 3fc6aa2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 74 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/continuous-integration-prototypes.yml

This file was deleted.

48 changes: 38 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,55 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:

permissions:
contents: read

jobs:
build:

env:
COMPOSEUI_SKIP_DOWNLOAD: 'true'
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '6.0.x' ]

node-version: [ '18.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
- name: Install Nuget dependencies
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet restore $_}
working-directory: src
- name: Build
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }}
working-directory: src
- name: Test
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal}
working-directory: src

- name: Build .Net
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }}

- name: Test .Net
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal --collect:"XPlat Code Coverage"}

- name: Codecov
uses: codecov/[email protected]

# By uploading it's shared with the other workflows that are reusing this
- name: Upload Shell Binaries
uses: actions/upload-artifact@v3
with:
name: shell-binaries
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: Release

jobs:
build:
uses: ./.github/workflows/continuous-integration-prototypes.yml
uses: ./.github/workflows/continuous-integration.yml
upload:
name: Upload Release Asset
needs: build
Expand Down

0 comments on commit 3fc6aa2

Please sign in to comment.