Skip to content

Commit 3fc6aa2

Browse files
authored
chore: Remove Unnecessary Workflow (#251)
* chore: Remove Unnecessary Workflow * chore: Remove Unnecessary Workflow * fix name
1 parent 356408d commit 3fc6aa2

File tree

3 files changed

+39
-74
lines changed

3 files changed

+39
-74
lines changed

.github/workflows/continuous-integration-prototypes.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/continuous-integration.yml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,55 @@ on:
99
branches: [ main ]
1010
pull_request:
1111
branches: [ main ]
12+
workflow_call:
13+
14+
permissions:
15+
contents: read
1216

1317
jobs:
1418
build:
15-
19+
env:
20+
COMPOSEUI_SKIP_DOWNLOAD: 'true'
1621
runs-on: windows-latest
1722
strategy:
1823
matrix:
1924
dotnet-version: [ '6.0.x' ]
20-
25+
node-version: [ '18.x' ]
2126
steps:
2227
- uses: actions/checkout@v3
28+
- name: Setup Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
COMPOSEUI_SKIP_DOWNLOAD: ${{env.COMPOSEUI_SKIP_DOWNLOAD}}
33+
- name: Install NPM dependencies
34+
run: npm ci
35+
36+
- name: Build JavaScript
37+
run: npx lerna run build
38+
39+
- name: Test JavaScript
40+
run: npx lerna run test
41+
2342
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
2443
uses: actions/setup-dotnet@v2
2544
with:
2645
dotnet-version: ${{ matrix.dotnet-version }}
27-
- name: Install dependencies
46+
- name: Install Nuget dependencies
2847
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet restore $_}
29-
working-directory: src
30-
- name: Build
31-
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }}
32-
working-directory: src
33-
- name: Test
34-
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal}
35-
working-directory: src
48+
49+
- name: Build .Net
50+
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }}
51+
52+
- name: Test .Net
53+
run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal --collect:"XPlat Code Coverage"}
54+
55+
- name: Codecov
56+
uses: codecov/[email protected]
57+
58+
# By uploading it's shared with the other workflows that are reusing this
59+
- name: Upload Shell Binaries
60+
uses: actions/upload-artifact@v3
61+
with:
62+
name: shell-binaries
63+
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ name: Release
1414

1515
jobs:
1616
build:
17-
uses: ./.github/workflows/continuous-integration-prototypes.yml
17+
uses: ./.github/workflows/continuous-integration.yml
1818
upload:
1919
name: Upload Release Asset
2020
needs: build

0 commit comments

Comments
 (0)