-
Notifications
You must be signed in to change notification settings - Fork 50
42 lines (38 loc) · 1.3 KB
/
test.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
name: test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: alpine:3.17
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: apk update && apk add meson wayland-dev musl-dev wayland-protocols gcc inih-dev pixman-dev cmocka-dev
- name: Run tests
run: meson setup test && ninja -C test test
analyze:
runs-on: ubuntu-latest
container: alpine:3.17
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: apk update && apk add meson wayland-dev musl-dev wayland-protocols gcc inih-dev pixman-dev cmocka-dev clang15 clang15-extra-tools clang15-analyzer
- name: Run clang-analyzer
if: success() || failure()
run: scan-build meson setup clang-analyzer && scan-build --status-bugs ninja -C clang-analyzer
- name: Run clang-tidy
if: success() || failure()
run: meson setup clang-tidy && ninja -C clang-tidy && run-clang-tidy -p clang-tidy
format:
runs-on: ubuntu-latest
container: alpine:3.17
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: apk update && apk add clang15-extra-tools
- name: Run clang-format
run: clang-format -Werror --dry-run src/* test/*