Skip to content

Disable Renovate dependency dashboard #80

Disable Renovate dependency dashboard

Disable Renovate dependency dashboard #80

Workflow file for this run

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
strategy:
matrix:
go: ["1.22.x"]
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 (${{ matrix.go }})
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Check compatibility with min Go version (${{ matrix.go }})
run: |
set -eux
GOMIN="$(sed -n 's/^GOMIN=\([0-9.]\+\)$/\1/p' Makefile)"
go mod tidy -go="${GOMIN}"
- 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
make -C example check-static
- name: Unit tests (all)
run: |
set -eux
make check-unit
make -C example check-unit
- name: Example system tests
run: |
set -eux
make -C example
cd example/test
CLUSTER_VERBOSE=1 ./main.sh