Merge pull request #130 from francma/drop-pixman #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |