mirror of https://github.com/status-im/consul.git
Switch to github-actions format for integration tests (#19693)
This commit is contained in:
parent
2f9bc5b0c3
commit
5d7b1170af
|
@ -14,7 +14,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.10.1"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul-bin
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }}
|
||||
|
@ -234,9 +234,8 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=short-verbose \
|
||||
--debug \
|
||||
--rerun-fails=2 \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
|
|
@ -14,7 +14,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.10.1"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul-bin
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }}
|
||||
|
@ -255,9 +255,8 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=short-verbose \
|
||||
--debug \
|
||||
--rerun-fails=2 \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
|
|
@ -14,7 +14,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.10.1"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul-bin
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }}
|
||||
|
@ -255,9 +255,8 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=short-verbose \
|
||||
--debug \
|
||||
--rerun-fails=2 \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
|
|
@ -14,7 +14,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.10.1"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul-bin
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }}
|
||||
|
@ -252,9 +252,8 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=short-verbose \
|
||||
--debug \
|
||||
--rerun-fails=2 \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
@ -349,8 +348,7 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=short-verbose \
|
||||
--debug \
|
||||
--format=github-actions \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
@ -433,13 +431,12 @@ jobs:
|
|||
- name: Upgrade Integration Tests
|
||||
run: |
|
||||
mkdir -p "${{ env.TEST_RESULTS_DIR }}"
|
||||
export NOLOGBUFFER=1
|
||||
#export NOLOGBUFFER=1
|
||||
cd ./test-integ/upgrade
|
||||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=standard-verbose \
|
||||
--debug \
|
||||
--format=github-actions \
|
||||
--packages="./..." \
|
||||
-- \
|
||||
go test \
|
||||
|
|
|
@ -11,7 +11,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.9.0"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul.exe
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'consul' }}
|
||||
|
|
|
@ -19,7 +19,7 @@ env:
|
|||
TEST_RESULTS_ARTIFACT_NAME: test-results
|
||||
CONSUL_LICENSE: ${{ secrets.CONSUL_LICENSE }}
|
||||
GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }}
|
||||
GOTESTSUM_VERSION: "1.10.1"
|
||||
GOTESTSUM_VERSION: "1.11.0"
|
||||
CONSUL_BINARY_UPLOAD_NAME: consul-bin
|
||||
# strip the hashicorp/ off the front of github.repository for consul
|
||||
CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }}
|
||||
|
@ -110,7 +110,7 @@ jobs:
|
|||
run: |
|
||||
go install gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} && \
|
||||
gotestsum \
|
||||
--format=short-verbose \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
--rerun-fails-report=/tmp/gotestsum-rerun-fails \
|
||||
--packages="./command/agent/consul" \
|
||||
|
@ -184,17 +184,17 @@ jobs:
|
|||
run: |
|
||||
mkdir -p "${{ env.TEST_RESULTS_DIR }}"
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--format=short-verbose \
|
||||
--format=github-actions \
|
||||
--junitfile "${{ env.TEST_RESULTS_DIR }}/gotestsum-report.xml" \
|
||||
-- -tags "${{ env.GOTAGS }}" -cover -coverprofile=coverage.txt ./agent/connect/ca
|
||||
# Run leader tests that require Vault
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--format=short-verbose \
|
||||
--format=github-actions \
|
||||
--junitfile "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-leader.xml" \
|
||||
-- -tags "${{ env.GOTAGS }}" -cover -coverprofile=coverage-leader.txt -run Vault ./agent/consul
|
||||
# Run agent tests that require Vault
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--format=short-verbose \
|
||||
--format=github-actions \
|
||||
--junitfile "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-agent.xml" \
|
||||
-- -tags "${{ env.GOTAGS }}" -cover -coverprofile=coverage-agent.txt -run Vault ./agent
|
||||
|
||||
|
@ -431,9 +431,8 @@ jobs:
|
|||
docker run --rm ${{ env.CONSUL_LATEST_IMAGE_NAME }}:local consul version
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=pkgname-and-test-fails \
|
||||
--debug \
|
||||
--rerun-fails=3 \
|
||||
--format=github-actions \
|
||||
--rerun-fails \
|
||||
-- \
|
||||
go test \
|
||||
-p=6 \
|
||||
|
@ -514,12 +513,11 @@ jobs:
|
|||
- name: Integration Tests
|
||||
run: |
|
||||
mkdir -p "${{ env.TEST_RESULTS_DIR }}"
|
||||
export NOLOGBUFFER=1
|
||||
#export NOLOGBUFFER=1
|
||||
cd ./test-integ
|
||||
go run gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} \
|
||||
--raw-command \
|
||||
--format=standard-verbose \
|
||||
--debug \
|
||||
--format=github-actions \
|
||||
-- \
|
||||
go test \
|
||||
-tags "${{ env.GOTAGS }}" \
|
||||
|
|
Loading…
Reference in New Issue