Skip to content

Commit

Permalink
Chore(CI): Use Repository Variables for Node.js and dotnet version
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm authored Mar 27, 2024
1 parent 9396329 commit 69a9411
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '6.0.x' ]
node-version: [ '20.x' ]
dotnet-version: [ '${{ vars.DOTNET_VERSION }}' ]
node-version: [ '${{ vars.NODE_VERSION }}' ]
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2


- run: echo Calling setup-node with node-version ${{ vars.NODE_VERSION }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
Expand All @@ -44,6 +45,7 @@ jobs:
- name: Test JavaScript
run: npx lerna run test

- run: echo Calling setup-dotnet with dotnet-version ${{ vars.DOTNET_VERSION }}
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
Expand Down Expand Up @@ -83,4 +85,4 @@ jobs:
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: shell-binaries
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/
path: ${{ github.workspace }}/src/shell/dotnet/Shell/bin/Release/net6.0-windows/

0 comments on commit 69a9411

Please sign in to comment.