Ensure joining nodes are immediately trusted #32
Workflow file for this run
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: Tests | |
on: | |
pull_request: | |
push: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
code-tests: | |
name: Code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Dependency Review | |
uses: actions/dependency-review-action@v4 | |
if: github.event_name == 'pull_request' | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Install dependencies | |
run: | | |
set -eux | |
sudo add-apt-repository ppa:dqlite/dev -y --no-update | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends -y \ | |
libdqlite-dev \ | |
shellcheck | |
- name: Run static analysis | |
run: | | |
set -eux | |
make check-static || echo "XXX: Ignoring failures for now" | |
make -C example check-static || echo "XXX: Ignoring failures for now" | |
- name: Unit tests (all) | |
run: | | |
set -eux | |
make check-unit | |
make -C example check-unit | |
- name: Make example | |
run: | | |
set -eux | |
make -C example |