Skip to content

Commit

Permalink
[NET-5823] Add consul enterprise tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodingenthusiast committed Nov 7, 2023
1 parent d0f9f1a commit ef188b1
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: ci

on:
push:
pull_request:
push:

env:
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}

jobs:
run-tests:
name: Run test cases
name: Run test cases (consul-version=${{ matrix.consul-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
go: [^1]
consul-version:
- 1.17.0
- 1.17.0+ent

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -20,12 +26,22 @@ jobs:
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ matrix.go }}

- name: Install Consul (consul-version=${{ matrix.consul-version }}) for integration testing
shell: bash
run: |
CONSUL_VERSION="${{ matrix.consul-version }}"
FILENAME="consul_${CONSUL_VERSION}_linux_amd64.zip"
curl -sSLO "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/${FILENAME}" && \
unzip "${FILENAME}" -d /usr/local/bin && \
rm "${FILENAME}"
consul version
- name: Install Consul, Vault and Nomad for integration testing
- name: Install Vault and Nomad 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 nomad
sudo apt-get update && sudo apt-get install vault nomad
- name: Run tests
run: |
Expand Down

0 comments on commit ef188b1

Please sign in to comment.