github: Migrate from travis to GH actions

This commit is contained in:
Michał Matczuk
2020-10-30 15:29:21 +01:00
committed by Michal Jan Matczuk
parent 4ea6f42a51
commit 7d3868d381
2 changed files with 32 additions and 19 deletions

32
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
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
- 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