-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1005 Bytes
/
build.yml
File metadata and controls
41 lines (38 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and test
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
rustflags: ""
- name: Check if formatted correctly
run: |
cargo fmt --check
- name: Check if code builds correctly
run: |
cargo check
- name: Run tests
run: |
cargo test
- name: Static code analysis with clippy
run: |
cargo clippy --all -- -D warnings
tests-emacs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: purcell/setup-emacs@master
with:
version: 29.4
- name: Run ERT tests
working-directory: emacs
run: |
emacs -q -batch -l ert -l deps.el -l sepl-mode.el -l tests.el -f ert-run-tests-batch-and-exit