File tree Expand file tree Collapse file tree 3 files changed +100
-0
lines changed
Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI Main
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ checks : write
12+
13+ jobs :
14+ build-and-test :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+
21+ - name : Setup .NET
22+ uses : actions/setup-dotnet@v4
23+ with :
24+ dotnet-version : 10.0.x
25+
26+ - name : Restore
27+ run : dotnet restore FScript.sln
28+
29+ - name : Build
30+ run : dotnet build FScript.sln --configuration Release --no-restore
31+
32+ - name : Test
33+ run : dotnet test FScript.sln --configuration Release --no-build --logger "trx" --results-directory TestResults
34+
35+ - name : Upload test results
36+ if : always()
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : test-results-main
40+ path : TestResults/**/*.trx
41+ if-no-files-found : warn
42+
43+ - name : Publish test report
44+ if : always()
45+ continue-on-error : true
46+ uses : dorny/test-reporter@v2
47+ with :
48+ name : Test Results (Main)
49+ path : TestResults/**/*.trx
50+ reporter : dotnet-trx
Original file line number Diff line number Diff line change 1+ name : CI PR
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : read
10+ checks : write
11+
12+ jobs :
13+ build-and-test :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v4
22+ with :
23+ dotnet-version : 10.0.x
24+
25+ - name : Restore
26+ run : dotnet restore FScript.sln
27+
28+ - name : Build
29+ run : dotnet build FScript.sln --configuration Release --no-restore
30+
31+ - name : Test
32+ run : dotnet test FScript.sln --configuration Release --no-build --logger "trx" --results-directory TestResults
33+
34+ - name : Upload test results
35+ if : always()
36+ uses : actions/upload-artifact@v4
37+ with :
38+ name : test-results-pr
39+ path : TestResults/**/*.trx
40+ if-no-files-found : warn
41+
42+ - name : Publish test report
43+ if : always()
44+ continue-on-error : true
45+ uses : dorny/test-reporter@v2
46+ with :
47+ name : Test Results (PR)
48+ path : TestResults/**/*.trx
49+ reporter : dotnet-trx
Original file line number Diff line number Diff line change 11# FScript
2+ [ ![ Build (main)] ( https://github.com/MagnusOpera/FScript/actions/workflows/ci-main.yml/badge.svg?branch=main )] ( https://github.com/MagnusOpera/FScript/actions/workflows/ci-main.yml )
23
34FScript is a lightweight, embeddable interpreter with an F#/ML-style language.
45
You can’t perform that action at this time.
0 commit comments