From d4cf25e7344edeac1f59022150c35d5a02cf63bf Mon Sep 17 00:00:00 2001 From: John Eikenberry Date: Tue, 8 Jun 2021 16:12:47 -0700 Subject: [PATCH] add github action based CI Only tests on Linux for the moment. Hope to expand that eventually. --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..974807815 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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