Skip to content

Commit

Permalink
add github action based CI
Browse files Browse the repository at this point in the history
Only tests on Linux for the moment. Hope to expand that eventually.
  • Loading branch information
eikenb committed Jun 9, 2021
1 parent 81d813a commit d4cf25e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci

on:
push:
pull_request:

jobs:
run-tests:
name: Run test cases
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
go: [^1]

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Install Consul and Vault for integration testing
run: |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install consul vault
- name: Run tests
run: |
make test

0 comments on commit d4cf25e

Please sign in to comment.