Skip to content

Commit

Permalink
Change GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Release-Candidate committed Apr 25, 2021
1 parent 434cbbd commit ccfee55
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ jobs:
dotnet tool restore
dotnet paket restore
- name: Publish Tests
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx target Publish
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx target Tests
./bin/TestTzolkin.exe --summary
- uses: actions/upload-artifact@v2
if: ${{ always() }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/osx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ jobs:
dotnet tool restore
dotnet paket restore
- name: Publish Tests
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx target Publish
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx target Tests
./bin/TestTzolkin.exe --summary
- uses: actions/upload-artifact@v2
if: ${{ always() }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/windows_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ jobs:
dotnet tool restore
dotnet paket restore
- name: Publish Tests
run: |
cd $GITHUB_WORKSPACE
dotnet fake run .\build.fsx target Publish
- name: Run Tests
run: |
dotnet fake run .\build.fsx target Tests
cd $GITHUB_WORKSPACE
.\bin\TestTzolkin.exe --summary
- uses: actions/upload-artifact@v2
if: ${{ always() }}
Expand Down
7 changes: 3 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ let coverageProjs = testProjs
let packageProjs = !! "src/TzolkinDate/*.*proj"

// projects to publish (`dotnet publish`)
let publishProjs =
!! "tests/**/*.*proj"
let publishProjs = !! "tests/**/*.*proj"

// projects that should be linted
let lintProjs =
Expand Down Expand Up @@ -139,7 +138,7 @@ let setUploadOpts (opts: DotNet.NuGetPushOptions) =
}

// Publish options for Target `Publish` ========================================
let setPublishOptions rid version (opts: DotNet.PublishOptions) =
let setPublishOptions rid (opts: DotNet.PublishOptions) =
{ opts with
NoLogo = true
NoBuild = false
Expand Down Expand Up @@ -330,7 +329,7 @@ Target.create
"Publish"
(fun _ ->
publishProjs
|> Seq.iter (DotNet.publish (setPublishOptions (getRID ())))
|> Seq.iter (DotNet.publish (setPublishOptions (getRID ()) ) ) )


//==============================================================================
Expand Down

0 comments on commit ccfee55

Please sign in to comment.