Skip to content

Commit

Permalink
tests: run tool separately, without restore tool dependencies (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh authored Aug 8, 2024
1 parent 69198d1 commit a8942e4
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
name: build-artifacts
path: "./artifacts"

test:
name: Test (${{ matrix.os }})
test-tool:
name: Test Tool (${{ matrix.os }})
needs: build
strategy:
matrix:
Expand All @@ -71,12 +71,6 @@ jobs:
dotnet-version: |
6.0.x
8.0.x
- name: Dotnet Tool Restore
shell: pwsh
run: dotnet tool restore
- name: Dotnet restore
shell: pwsh
run: dotnet restore
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -89,6 +83,32 @@ jobs:
shell: pwsh
working-directory: ./src/Atlas.Provider.Demo
run: dotnet atlas-ef -- sqlserver

test:
name: Test (${{ matrix.os }})
needs: build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected]
with:
lfs: true
fetch-depth: 0
- name: Install .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: |
6.0.x
8.0.x
- name: Dotnet Tool Restore
shell: pwsh
run: dotnet tool restore
- name: Dotnet restore
shell: pwsh
run: dotnet restore
- name: Dotnet Cake Test
shell: pwsh
run: dotnet cake --target=Test
Expand Down

0 comments on commit a8942e4

Please sign in to comment.