mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Streamline test commands between branches.
Signed-off-by: James Blair <mail@jamesblair.net>
This commit is contained in:
parent
2b533b4bc2
commit
7a33184d90
2
.github/workflows/e2e-arm64-nightly.yaml
vendored
2
.github/workflows/e2e-arm64-nightly.yaml
vendored
@ -11,9 +11,7 @@ jobs:
|
||||
uses: ./.github/workflows/e2e-arm64-template.yaml
|
||||
with:
|
||||
etcdBranch: main
|
||||
e2eTestCmd: make test-e2e-release
|
||||
release-35-arm64:
|
||||
uses: ./.github/workflows/e2e-arm64-template.yaml
|
||||
with:
|
||||
etcdBranch: release-3.5
|
||||
e2eTestCmd: PASSES='build release e2e' COVER='false' ./test.sh
|
||||
|
5
.github/workflows/e2e-arm64-template.yaml
vendored
5
.github/workflows/e2e-arm64-template.yaml
vendored
@ -6,9 +6,6 @@ on:
|
||||
etcdBranch:
|
||||
required: true
|
||||
type: string
|
||||
e2eTestCmd:
|
||||
required: false
|
||||
type: string
|
||||
permissions: read-all
|
||||
jobs:
|
||||
test:
|
||||
@ -44,7 +41,7 @@ jobs:
|
||||
echo "${TARGET}"
|
||||
case "${TARGET}" in
|
||||
linux-arm64-e2e)
|
||||
GOOS=linux GOARCH=arm64 CPU=4 EXPECT_DEBUG=true ${{ inputs.e2eTestCmd }}
|
||||
GOOS=linux GOARCH=arm64 CPU=4 EXPECT_DEBUG=true make test-e2e-release
|
||||
;;
|
||||
*)
|
||||
echo "Failed to find target"
|
||||
|
4
.github/workflows/tests-arm64-nightly.yaml
vendored
4
.github/workflows/tests-arm64-nightly.yaml
vendored
@ -11,12 +11,8 @@ jobs:
|
||||
uses: ./.github/workflows/tests-arm64-template.yaml
|
||||
with:
|
||||
etcdBranch: main
|
||||
integrationTestCmd: make test-integration
|
||||
unitTestCmd: GO_TEST_FLAGS='-p=2' make test-unit
|
||||
release-35-arm64:
|
||||
uses: ./.github/workflows/tests-arm64-template.yaml
|
||||
with:
|
||||
etcdBranch: release-3.5
|
||||
integrationTestCmd: PASSES='integration' ./test.sh
|
||||
unitTestCmd: PASSES='unit' CPU='4' ./test.sh -p=2
|
||||
gofailMake: "no"
|
||||
|
14
.github/workflows/tests-arm64-template.yaml
vendored
14
.github/workflows/tests-arm64-template.yaml
vendored
@ -6,12 +6,6 @@ on:
|
||||
etcdBranch:
|
||||
required: true
|
||||
type: string
|
||||
integrationTestCmd:
|
||||
required: true
|
||||
type: string
|
||||
unitTestCmd:
|
||||
required: true
|
||||
type: string
|
||||
gofailMake:
|
||||
required: false
|
||||
type: string
|
||||
@ -57,18 +51,18 @@ jobs:
|
||||
case "${TARGET}" in
|
||||
linux-arm64-integration-1-cpu)
|
||||
if [ "${{ inputs.gofailMake }}" == "yes" ]; then make gofail-enable; fi
|
||||
GOOS=linux GOARCH=arm64 CPU=1 ${{ inputs.integrationTestCmd }}
|
||||
GOOS=linux GOARCH=arm64 CPU=1 make test-integration
|
||||
;;
|
||||
linux-arm64-integration-2-cpu)
|
||||
if [ "${{ inputs.gofailMake }}" == "yes" ]; then make gofail-enable; fi
|
||||
GOOS=linux GOARCH=arm64 CPU=2 ${{ inputs.integrationTestCmd }}
|
||||
GOOS=linux GOARCH=arm64 CPU=2 make test-integration
|
||||
;;
|
||||
linux-arm64-integration-4-cpu)
|
||||
if [ "${{ inputs.gofailMake }}" == "yes" ]; then make gofail-enable; fi
|
||||
GOOS=linux GOARCH=arm64 CPU=4 ${{ inputs.integrationTestCmd }}
|
||||
GOOS=linux GOARCH=arm64 CPU=4 make test-integration
|
||||
;;
|
||||
linux-arm64-unit-4-cpu)
|
||||
GOOS=linux GOARCH=arm64 CPU=4 ${{ inputs.unitTestCmd }}
|
||||
GOOS=linux GOARCH=arm64 CPU=4 GO_TEST_FLAGS='-p=2' make test-unit
|
||||
;;
|
||||
*)
|
||||
echo "Failed to find target"
|
||||
|
Loading…
x
Reference in New Issue
Block a user