Files
gocqlx/.github/workflows/main.yml
2021-04-30 11:19:14 +02:00

35 lines
715 B
YAML

name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
SCYLLA_VERSION: 4.2.0
GOBIN: ./bin
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16'
- uses: actions/cache@v2
id: gomod-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.mod') }}
restore-keys: |
${{ runner.os }}-go-
- run: mkdir -p ${GOBIN}
- run: make get-deps get-tools
- run: make check
- run: make run-scylla
- run: make test