Skip to content

Merge pull request #123 from tdltdc/master #217

Merge pull request #123 from tdltdc/master

Merge pull request #123 from tdltdc/master #217

Workflow file for this run

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/*