Skip to content

Instantly share code, notes, and snippets.

@higebu
Last active January 7, 2020 08:45
Show Gist options
  • Save higebu/9fc9d3982f0018d0c727cf2d69b3f03d to your computer and use it in GitHub Desktop.
Save higebu/9fc9d3982f0018d0c727cf2d69b3f03d to your computer and use it in GitHub Desktop.
GitHub Actions Workflow for Go and Cassandra
name: test
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
services:
cassandra:
image: cassandra
ports:
- 9042
- 7199
options: --health-cmd 'cqlsh -e "USE system"' --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: checkout
uses: actions/checkout@v1
- name: go test
run: |
go test -v -cover . -cluster 127.0.0.1:${{ job.services.cassandra.ports['9042'] }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment