From 7d3868d381ce9393649d2bfddf77e8c3da842dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Fri, 30 Oct 2020 15:29:21 +0100 Subject: [PATCH] github: Migrate from travis to GH actions --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 2 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..56e3426 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 49a30ea..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: go - -go: - - stable - -services: - - docker - -env: - - SCYLLA_VERSION=4.0.rc1 - -before_install: - - make run-scylla - -install: - - make get-deps get-tools - -script: - - make