-
-
Notifications
You must be signed in to change notification settings - Fork 412
86 lines (71 loc) · 2.88 KB
/
tests.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
types: [ opened, synchronize, closed ]
jobs:
test:
name: ${{matrix.renderer}} on ${{matrix.os}}
strategy:
matrix:
renderer: [gi-gtk,electron]
os: [ubuntu-latest,macos-latest]
exclude:
- os: macos-latest
renderer: gi-gtk
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: 'false'
submodules: 'true'
- name: Install nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Compile ${{matrix.renderer}} port on ${{matrix.os}}
run: nix-shell build-scripts/shell.nix --run 'make all NYXT_RENDERER=${{matrix.renderer}}'
- name: Test ${{matrix.renderer}} port on ${{matrix.os}}
env:
NASDF_NON_INTERACTIVE_TESTS: true
# It runs the tests for system nyxt, not nyxt/${{matrix.renderer}}.
run: nix-shell build-scripts/shell.nix --run 'make check'
- name: Test history-tree
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :history-tree)'"
- name: Test nhooks
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :nhooks)'"
- name: Test nfiles
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :nfiles)'"
- name: Test nclasses
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :nclasses)'"
- name: Test prompter
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :prompter)'"
- name: Test nkeymaps
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :nkeymaps)'"
- name: Test njson
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:load-system :njson/cl-json)' --eval '(asdf:test-system :njson)'"
- name: Test nsymbols
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :nsymbols)'"
- name: Test ndebug
env:
NASDF_NON_INTERACTIVE_TESTS: true
run: nix-shell build-scripts/shell.nix --run "sbcl --eval '(require \"asdf\")' --eval '(asdf:test-system :ndebug)'"