Skip to content

Commit

Permalink
Refactor CI workflow to ensure checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jul 5, 2024
1 parent 1f027c3 commit 84fcb84
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ jobs:
build_docs:
runs-on: windows-latest
steps:
- name: Build Solution
uses: ./.github/workflows/build.yml
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 7.x
dotnet-version: 8.x

- name: Restore NuGet Packages
run: dotnet restore Bonsai.ML.sln

- name: Build Solution
run: dotnet build Bonsai.ML.sln -c Release

- name: Setup DocFX
run: dotnet tool restore
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,26 @@ jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.10

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 8.x

- name: Restore NuGet Packages
run: dotnet restore Bonsai.ML.sln

- name: Build Solution
uses: ./.github/workflows/build.yml
run: dotnet build Bonsai.ML.sln -c Release

- name: Run Tests
run: dotnet test Bonsai.ML.sln

0 comments on commit 84fcb84

Please sign in to comment.