Skip to content

Commit 9c11944

Browse files
committed
chore(workflows): Update test.yml for better formatting and dependencies
- Standardize spacing and quotes for YAML syntax consistency. - Add `sudo apt update` and `socat` installation in the "Install test dependencies" step. - Improve readability by organizing steps logically.
1 parent ae99765 commit 9c11944

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

.github/workflows/test.yml

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,59 @@ name: Test Suite
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main, develop ]
7+
branches: [main, develop]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
emacs_version:
15-
- '28.1'
16-
- '28.2'
17-
- '29.1'
18-
- '30.1'
19-
- '30.2'
20-
- 'snapshot'
21-
15+
- "28.1"
16+
- "28.2"
17+
- "29.1"
18+
- "30.1"
19+
- "30.2"
20+
- "snapshot"
21+
2222
steps:
23-
- uses: actions/checkout@v4
24-
25-
- name: Set up Emacs ${{ matrix.emacs_version }}
26-
uses: purcell/setup-emacs@master
27-
with:
28-
version: ${{ matrix.emacs_version }}
29-
30-
- name: Install test dependencies
31-
run: make install-deps
32-
33-
- name: Run unit tests
34-
run: make test-unit
35-
env:
36-
CI: true
37-
38-
- name: Run integration tests
39-
run: make test-integration
40-
env:
41-
CI: true
42-
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Emacs ${{ matrix.emacs_version }}
26+
uses: purcell/setup-emacs@master
27+
with:
28+
version: ${{ matrix.emacs_version }}
29+
30+
- name: Install test dependencies
31+
run: |
32+
sudo apt update
33+
sudo apt install -y socat
34+
make install-deps
35+
36+
- name: Run unit tests
37+
run: make test-unit
38+
env:
39+
CI: true
40+
41+
- name: Run integration tests
42+
run: make test-integration
43+
env:
44+
CI: true
4345

4446
lint:
4547
runs-on: ubuntu-latest
4648
steps:
47-
- uses: actions/checkout@v4
48-
49-
- name: Set up Emacs 29.1
50-
uses: purcell/setup-emacs@master
51-
with:
52-
version: '29.1'
53-
54-
- name: Install test dependencies
55-
run: make install-deps
56-
57-
- name: Check byte compilation
58-
run: emacs --batch -L . --eval "(byte-compile-file \"mcp-server.el\")"
49+
- uses: actions/checkout@v4
50+
51+
- name: Set up Emacs 29.1
52+
uses: purcell/setup-emacs@master
53+
with:
54+
version: "29.1"
55+
56+
- name: Install test dependencies
57+
run: make install-deps
58+
59+
- name: Check byte compilation
60+
run: emacs --batch -L . --eval "(byte-compile-file \"mcp-server.el\")"

0 commit comments

Comments
 (0)