-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (35 loc) · 1016 Bytes
/
tests.yml
File metadata and controls
45 lines (35 loc) · 1016 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
42
43
44
45
name: Nutshell Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential clang libreadline-dev libcurl4-openssl-dev libjansson-dev libssl-dev jq
- name: Create directories
run: |
mkdir -p ~/.nutshell/themes
mkdir -p ~/.nutshell/packages
- name: Build project
run: make
- name: Copy theme files for tests
run: |
cp themes/*.json ~/.nutshell/themes/
ls -la ~/.nutshell/themes/
- name: Run tests
run: |
make test
- name: Run theme JSON validation
run: |
chmod +x tests/test_theme_json.sh
./tests/test_theme_json.sh
- name: Report status
run: echo "All tests completed successfully!"