mirror of
https://github.com/trezor/blockbook.git
synced 2026-03-03 06:14:27 +01:00
25 lines
546 B
YAML
25 lines
546 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build Docker image
|
|
run: make build-images
|
|
|
|
- name: Run unit tests in Docker
|
|
run: |
|
|
docker run --rm -v "$(pwd):/src" blockbook-build bash -c "
|
|
cd /src &&
|
|
go mod download &&
|
|
go test -tags 'unittest' \$(go list ./... | grep -vP '^github.com/trezor/blockbook/(contrib|tests)')
|
|
" |