mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
https://app.stepsecurity.io/secureworkflow/etcd-io/etcd/tests.yaml/main?enable=pin 1. Copy the existing yaml file and paste into the textbox, 2. Click "SECURE WORKFLOW" 3. Copy the manifest from the textbox and paste into etcd repo. Signed-off-by: Benjamin Wang <wachao@vmware.com>
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
name: Tests
|
|
on: [push, pull_request]
|
|
permissions: read-all
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- linux-amd64-integration-1-cpu
|
|
- linux-amd64-integration-2-cpu
|
|
- linux-amd64-integration-4-cpu
|
|
- linux-amd64-unit-4-cpu-race
|
|
- linux-386-unit-1-cpu
|
|
steps:
|
|
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0
|
|
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
|
|
with:
|
|
go-version: "1.19.4"
|
|
- run: date
|
|
- env:
|
|
TARGET: ${{ matrix.target }}
|
|
run: |
|
|
mkdir "${TARGET}"
|
|
export JUNIT_REPORT_DIR=$(realpath ${TARGET})
|
|
case "${TARGET}" in
|
|
linux-amd64-integration-1-cpu)
|
|
GOARCH=amd64 CPU=1 PASSES='integration' RACE='false' ./scripts/test.sh
|
|
;;
|
|
linux-amd64-integration-2-cpu)
|
|
GOARCH=amd64 CPU=2 PASSES='integration' RACE='false' ./scripts/test.sh
|
|
;;
|
|
linux-amd64-integration-4-cpu)
|
|
GOARCH=amd64 CPU=4 PASSES='integration' RACE='false' ./scripts/test.sh
|
|
;;
|
|
linux-amd64-unit-4-cpu-race)
|
|
GOARCH=amd64 PASSES='unit' RACE='true' CPU='4' ./scripts/test.sh -p=2
|
|
;;
|
|
linux-386-unit-1-cpu)
|
|
GOARCH=386 PASSES='unit' RACE='false' CPU='1' ./scripts/test.sh -p=4
|
|
;;
|
|
*)
|
|
echo "Failed to find target"
|
|
exit 1
|
|
;;
|
|
esac
|
|
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
|
|
if: always()
|
|
with:
|
|
path: ./**/junit_*.xml
|