Skip to content

Merge branch 'add-license' into 'main' #1

Merge branch 'add-license' into 'main'

Merge branch 'add-license' into 'main' #1

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
BuildAndTestLibrary:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.0
- name: Formatting check
run: '! gofmt -l . | grep -q .'
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout 5m0s
- name: Build
run: go build
- name: Test
run: |
cd database/docker
docker-compose up --detach
cd ../../indexer
go test .