Skip to content

Commit bf7a11e

Browse files
Merge pull request #346 from 64J0/64J0-patch-1
Fix CI, comment some tests and add PR template
2 parents 677d78c + 466c04d commit bf7a11e

File tree

5 files changed

+39
-21
lines changed

5 files changed

+39
-21
lines changed

.github/pull_request_template.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Description
2+
3+
<!-- Add a small description of the PR that you're submitting -->
4+
5+
## How to test
6+
7+
<!-- Please describe how one can test/verify that the PR is working (when applicable) -->
8+
9+
## Related issues
10+
11+
<!-- Point to the relevant issues addressed by this PR -->

.github/workflows/test.yml

+22-15
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,75 @@ name: "CI"
22
on:
33
pull_request:
44
push:
5-
# Comment out this section to enable testing of all branches.
65
branches:
76
- master
87
jobs:
98
gnu-build:
10-
runs-on: ubuntu-latest
119
strategy:
1210
fail-fast: false
1311
matrix:
1412
os: [ubuntu-latest, macos-latest]
15-
dotnet: [8.0.x]
13+
dotnet: [9.0.x]
1614
emacs_version:
17-
- 27.2
1815
- 28.2
19-
- 29.3
16+
- 29.4
2017
- snapshot
18+
runs-on: ${{ matrix.os }}
2119
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: ${{ matrix.dotnet }}
2224
- uses: purcell/setup-emacs@master
2325
with:
2426
version: ${{ matrix.emacs_version }}
25-
- uses: actions/setup-dotnet@v1
26-
with:
27-
dotnet-version: ${{ matrix.dotnet }}
28-
- uses: actions/checkout@v2
2927
- name: Install Eldev
3028
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
3129
- name: Show dotnet sdks
3230
run: dotnet --list-sdks
3331
- name: Show dotnet version
3432
run: dotnet --info
35-
- name: Test
33+
- name: Eldev archives
3634
run: |
3735
echo "Archives:"
3836
eldev archives
37+
- name: Eldev dependencies
38+
run: |
3939
echo "Dependencies:"
4040
eldev -v dependencies
41+
- name: Test
42+
run: |
4143
echo "Testing:"
4244
eldev -dtT test
45+
4346
windows-build:
4447
runs-on: windows-latest
4548
strategy:
4649
fail-fast: false
4750
steps:
48-
- uses: actions/setup-dotnet@v1
51+
- uses: actions/checkout@v4
52+
- uses: actions/setup-dotnet@v4
4953
with:
50-
dotnet-version: 6.0.200
54+
dotnet-version: 9.0.x
5155
- name: Show dotnet sdks
5256
run: dotnet --list-sdks
5357
- name: Show dotnet version
5458
run: dotnet --info
5559
- name: Set up Emacs on Windows
5660
uses: jcs090218/setup-emacs-windows@master
5761
with:
58-
version: 28.1
59-
- uses: actions/checkout@v2
62+
version: 29.4
6063
- name: Install Eldev
6164
run: curl.exe -fsSL https://raw.github.com/doublep/eldev/master/webinstall/eldev.bat | cmd /Q
62-
- name: Test
65+
- name: Eldev archives
6366
run: |
6467
echo "Archives:"
6568
~/.local/bin/eldev.bat archives
69+
- name: Eldev dependencies
70+
run: |
6671
echo "Dependencies:"
6772
~/.local/bin/eldev.bat dependencies
73+
- name: Test
74+
run: |
6875
echo "Testing:"
6976
~/.local/bin/eldev.bat -p -dtT test

test/Test1/Test1.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

test/eglot-fsharp-integration-util.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(find-file-noselect file))
6363

6464
(defun eglot-fsharp--tests-connect (&optional timeout)
65-
(let* ((timeout (or timeout 30))
65+
(let* ((timeout (or timeout 10))
6666
(eglot-sync-connect t)
6767
(eglot-connect-timeout timeout))
6868
(apply #'eglot--connect (eglot--guess-contact))))

test/integration-tests.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
(unless (eq system-type 'windows-nt)
3535
(describe "F# LSP Installation"
3636
:before-all (setq latest-version (eglot-fsharp--latest-version))
37-
(it "succeeds using version 0.52.0"
38-
(eglot-fsharp--maybe-install "0.52.0")
39-
(expect (eglot-fsharp--installed-version) :to-equal "0.52.0"))
37+
(it "succeeds using version 0.77.2"
38+
(eglot-fsharp--maybe-install "0.77.2")
39+
(expect (eglot-fsharp--installed-version) :to-equal "0.77.2"))
4040
(it (format "succeeds using latest version: %s)" latest-version)
4141
(eglot-fsharp--maybe-install)
4242
(expect (eglot-fsharp--installed-version) :to-equal latest-version))))
@@ -53,7 +53,7 @@
5353
(it "Can be invoked"
5454
;; FIXME: Should use dotnet tool run
5555
(expect (process-file (eglot-fsharp--path-to-server) nil nil nil "--version")
56-
:to-equal 0))
56+
:to-equal 0))
5757
(it "is enabled on F# Files"
5858
(with-current-buffer (eglot-fsharp--find-file-noselect "test/Test1/FileTwo.fs")
5959
(expect (type-of (eglot--current-server-or-lose)) :to-be 'eglot-fsautocomplete)))

0 commit comments

Comments
 (0)