Skip to content

Commit

Permalink
Run enterprise tests (G-Research#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-krystianc authored Jul 31, 2023
1 parent fc9c4f8 commit 0deb634
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ jobs:
with:
dotnet-version: 7.0.x
- name: Setup Consul Enterprise URL
# Consul enterprise until version 1.10.0 can be run even without a valid license,
# so we take advantage of that and run enterprise tests for versions lower than 1.10.0.
# This is necessary until a valid license is configured in the repository settings.
if: ${{ !github.event.repository.fork && !startsWith(matrix.consul, '1.1') }}
if: ${{ !github.event.repository.fork }}
run: |
echo "RUN_CONSUL_ENTERPRISE_TESTS=1" >> $GITHUB_ENV
- name: Download Consul
Expand All @@ -112,6 +109,7 @@ jobs:
dotnet test Consul.Test --configuration=Release --logger "GitHubActions;report-warnings=false" --no-build -v=Normal --framework=${{ matrix.framework }}
env:
RUN_CONSUL_ENTERPRISE_TESTS: ${{env.RUN_CONSUL_ENTERPRISE_TESTS }}
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
- name: Upload Consul logs
if: failure()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 0deb634

Please sign in to comment.