Skip to content

Merge pull request #88 from neoaggelos/fix/token #30

Merge pull request #88 from neoaggelos/fix/token

Merge pull request #88 from neoaggelos/fix/token #30

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