cnid: clean up only stale rows the sqlite backend itself wrote #4621
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - branch-* | |
| pull_request: | |
| branches: | |
| - main | |
| - branch-* | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| permissions: | |
| contents: read | |
| jobs: | |
| formatting: | |
| name: Code Formatting | |
| runs-on: ubuntu-latest | |
| container: | |
| image: alpine:3.24.1 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apk add --no-cache \ | |
| build-base \ | |
| ca-certificates \ | |
| cmake \ | |
| curl \ | |
| git \ | |
| muon \ | |
| nodejs \ | |
| npm \ | |
| perl-tidy \ | |
| shfmt \ | |
| yamlfmt | |
| curl --proto '=https' --location --fail -o /tmp/markdownlint-cli2.tgz \ | |
| https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.22.0.tgz | |
| echo '98e0bd058fd71ad757dccf67dc080445defd174f92ef0d7cc81053348438e77b08f3b7ad65fa75cf879a8ea48c57bd026236f129ee64b4abd3d870a9bdc5b1f7 /tmp/markdownlint-cli2.tgz' \ | |
| | sha512sum -c - | |
| npm install --global --ignore-scripts /tmp/markdownlint-cli2.tgz | |
| - name: Build astyle from source | |
| run: | | |
| curl --proto '=https' --location --fail -o /tmp/astyle.tar.gz \ | |
| https://gitlab.com/saalen/astyle/-/archive/3.6.18/astyle-3.6.18.tar.gz | |
| echo '3cf671a726e9b14e75fd9ad862dc6b5500f948a12700bc842e9bd4bc3a9a9915 /tmp/astyle.tar.gz' \ | |
| | sha256sum -c - | |
| mkdir -p /tmp/astyle | |
| tar -xzf /tmp/astyle.tar.gz -C /tmp/astyle --strip-components=1 | |
| cmake -S /tmp/astyle -B /tmp/astyle/build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_INSTALL_PREFIX=/usr/local | |
| cmake --build /tmp/astyle/build -j"$(nproc)" | |
| cmake --install /tmp/astyle/build | |
| astyle --version | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check formatting | |
| run: ./contrib/scripts/codefmt.sh -v | |
| markdown-linting: | |
| name: Markdown Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0 | |
| with: | |
| globs: '**/*.md' | |
| distribution-tests: | |
| name: Distribution Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 12 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --assume-yes --no-install-recommends \ | |
| libevent-dev \ | |
| libgcrypt20-dev \ | |
| libiniparser-dev \ | |
| meson \ | |
| ninja-build | |
| - name: Configure | |
| run: | | |
| meson setup build \ | |
| -Dbuildtype=debugoptimized \ | |
| -Dwith-init-hooks=false \ | |
| -Dwith-tests=true | |
| - name: Run distribution tests | |
| run: meson dist -C build | |
| build-doxygen-docs: | |
| name: Build Doxygen Docs | |
| runs-on: ubuntu-latest | |
| container: | |
| image: alpine:3.23.2 | |
| timeout-minutes: 12 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apk add --no-cache \ | |
| build-base \ | |
| ca-certificates \ | |
| doxygen \ | |
| gcc \ | |
| git \ | |
| iniparser-dev \ | |
| libevent-dev \ | |
| libgcrypt-dev \ | |
| meson \ | |
| pkgconf \ | |
| sqlite-dev | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Configure | |
| run: | | |
| meson setup build \ | |
| -Dbuildtype=debug \ | |
| -Dwith-docs=developer \ | |
| -Dwith-doxygen-strict=true | |
| - name: Upload Meson log on failure | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: meson-log | |
| path: build/meson-logs/meson-log.txt |