mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
30 lines
717 B
YAML
30 lines
717 B
YAML
name: Coverage
|
|
on: [push]
|
|
permissions: read-all
|
|
jobs:
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- linux-amd64-coverage
|
|
steps:
|
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
|
with:
|
|
go-version: "1.19.7"
|
|
- env:
|
|
TARGET: ${{ matrix.target }}
|
|
run: |
|
|
mkdir "${TARGET}"
|
|
case "${TARGET}" in
|
|
linux-amd64-coverage)
|
|
GOARCH=amd64 ./scripts/codecov_upload.sh
|
|
;;
|
|
*)
|
|
echo "Failed to find target"
|
|
exit 1
|
|
;;
|
|
esac
|