-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for automated testing
- Set up initial CI pipeline - Configure .NET and Mono/F# environments - Run test suite on Ubuntu - Prepare for future cross-platform testing
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# We can expand this later to include: macos-latest, windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Setup Mono/F# | ||
if: matrix.os != 'windows-latest' # Mono not needed on Windows | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y fsharp | ||
- name: Make scripts executable | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
chmod +x fsi | ||
chmod +x test_fsi.fsx | ||
- name: Run tests | ||
run: ./test_fsi.fsx |