Skip to content

feat(cmd/gno): allow dirs and arbitrary expressions on gno run (#988) #44

feat(cmd/gno): allow dirs and arbitrary expressions on gno run (#988)

feat(cmd/gno): allow dirs and arbitrary expressions on gno run (#988) #44

Workflow file for this run

name: db-tests
on:
pull_request:
paths:
- "tm2/pkg/db/**.go"
- "go.sum"
- ".github/workflows/db-tests.yml"
push:
branches: [ "master" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
tags:
- cleveldb
- memdb
- fsdb
- boltdb
steps:
# golang
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
# leveldb
- name: install leveldb
if: ${{ matrix.tags=='cleveldb' }}
run: |
sudo apt-get install libsnappy1v5
mkdir -p /tmp/leveldb
cd /tmp/leveldb
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb
sudo dpkg -i *.deb
# test ./pkgs/db
- uses: actions/checkout@v3
- name: test ./tm2/pkg/db
run: go test -tags ${{ matrix.tags }} ./tm2/pkg/db/...