|
11 | 11 | CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }} |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - run-tests: |
15 | | - name: Run test cases (with consul${{ matrix.consul-ent-tag }}) |
16 | | - runs-on: ${{ matrix.os }} |
17 | | - strategy: |
18 | | - fail-fast: false |
19 | | - matrix: |
20 | | - os: [ubuntu-latest] |
21 | | - go: [^1] |
22 | | - consul-ent-tag: ["", "-enterprise"] |
| 14 | + run-tests-standard: |
| 15 | + name: Run test cases (standard) |
| 16 | + runs-on: ubuntu-latest # Assuming ubuntu-latest based on original matrix |
23 | 17 |
|
24 | 18 | steps: |
25 | 19 | - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
26 | 20 |
|
27 | 21 | - name: Set up Go |
28 | 22 | uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 |
29 | 23 | with: |
30 | | - go-version: ${{ matrix.go }} |
| 24 | + go-version: ^1 # Assuming ^1 based on original matrix |
31 | 25 | cache: false |
32 | 26 |
|
33 | | - - name: Install Consul${{ matrix.consul-ent-tag }}, Vault and Nomad for integration testing |
| 27 | + - name: Install Consul, Vault and Nomad for integration testing |
34 | 28 | run: | |
35 | 29 | curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - |
36 | 30 | sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" |
37 | | - sudo apt-get update && sudo apt-get install consul${{ matrix.consul-ent-tag }} vault nomad |
| 31 | + sudo apt-get update && sudo apt-get install consul vault nomad |
| 32 | +
|
| 33 | + - name: Run tests |
| 34 | + run: | |
| 35 | + make test-race |
| 36 | +
|
| 37 | + run-tests-enterprise: |
| 38 | + name: Run test cases (enterprise) |
| 39 | + runs-on: ubuntu-latest # Assuming ubuntu-latest based on original matrix |
| 40 | + needs: run-tests-standard # Make this job depend on the standard tests |
| 41 | + |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 44 | + |
| 45 | + - name: Set up Go |
| 46 | + uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 |
| 47 | + with: |
| 48 | + go-version: ^1 # Assuming ^1 based on original matrix |
| 49 | + cache: false |
| 50 | + |
| 51 | + - name: Install Consul-Enterprise, Vault and Nomad for integration testing |
| 52 | + run: | |
| 53 | + curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - |
| 54 | + sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" |
| 55 | + sudo apt-get update && sudo apt-get install consul-enterprise vault nomad |
38 | 56 |
|
39 | 57 | - name: Run tests |
40 | 58 | run: | |
|
0 commit comments