Files
cproof/.github/workflows/main.yml
Jabber Developer 413487523c
Some checks failed
CI / Linux (debian) (pull_request) Successful in 13m59s
CI / Linux (fedora) (pull_request) Successful in 15m35s
CI / Linux (arch) (pull_request) Successful in 16m38s
CI / Check coding style (pull_request) Failing after 2m13s
CI / Check spelling (pull_request) Successful in 1m25s
CI / Linux (ubuntu) (pull_request) Successful in 16m2s
Fix workflow
2025-06-19 19:59:02 +02:00

66 lines
1.8 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [arch, debian, fedora, ubuntu]
name: Linux
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
docker build -f Dockerfile.${{ matrix.flavor }} -t profanity .
docker run profanity ./ci-build.sh
code-style:
runs-on: ubuntu-latest
name: Check coding style
continue-on-error: true
steps:
- uses: actions/checkout@v4
# if this check fails, you have to update the number of auto types known and the list of auto types in the check below
- name: Check auto types are up-to-date
run: |
[[ "$(find src -type f -name '*.[ch]' -exec awk '/^#define auto_[\W]*/ {print $2}' '{}' \; | sort -u | wc -l)" == "8" ]] || exit -1
- name: Check auto types are initialized
run: |
grep -P 'auto_(char|gchar|gcharv|guchar|jid|sqlite|gfd|FILE)[\w *]*;$' -r src && exit -1 || true
- name: Show workspace dir
run: |
echo "PWD: $(pwd)"
ls -l
ls -l src || echo "src directory not found"
- name: Run clang-format
uses: jidicula/clang-format-action@v4.15.0
with:
clang-format-version: '20'
check-path: 'src'
spell-check:
runs-on: ubuntu-22.04
name: Check spelling
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends codespell
- name: Check spelling
run: |
codespell