Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for consul ent testing #1831

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
name: ci

on:
push:
pull_request:
roncodingenthusiast marked this conversation as resolved.
Show resolved Hide resolved
push:
branches:
- main
- release/**

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

jobs:
run-tests:
name: Run test cases
name: Run test cases (with consul${{ matrix.consul-ent-tag }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
go: [^1]
consul-ent-tag: ["", "-enterprise"]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -21,11 +28,11 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Install Consul, Vault and Nomad for integration testing
- name: Install Consul${{ matrix.consul-ent-tag }}, 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 consul${{ matrix.consul-ent-tag }} vault nomad

- name: Run tests
run: |
Expand Down